2008-02-25 Robert Jordan <robertj@gmx.net>
[mono.git] / mcs / class / corlib / Microsoft.Win32 / Win32RegistryApi.cs
index 1849a46f4e1e4a2c6d5fc81d6a5e6488e203f346..c32ac30c801a8b9b5cc6827fe884274bc0d85a91 100644 (file)
@@ -536,9 +536,13 @@ namespace Microsoft.Win32
 
                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>