* Win32RegistryApi.cs (ToString): Don't emit the handle value
under NET_2_0.
See http://msdn2.microsoft.com/en-us/netframework/
aa497241.aspx.
svn path=/trunk/mcs/; revision=96593
+2008-02-25 Robert Jordan <robertj@gmx.net>
+
+ * Win32RegistryApi.cs (ToString): Don't emit the handle value
+ under NET_2_0.
+ See http://msdn2.microsoft.com/en-us/netframework/aa497241.aspx.
+
2008-02-01 Gert Driesen <drieseng@users.sourceforge.net>
* RegistryKey.cs: Added missing checks on length of subkey and value
public string ToString (RegistryKey rkey)
{
+#if NET_2_0
+ return rkey.Name;
+#else
IntPtr handle = GetHandle (rkey);
return String.Format ("{0} [0x{1:X}]", rkey.Name, handle.ToInt32 ());
+#endif
}
/// <summary>