Author: zoltan
Date: 2005-07-06 09:43:46 -0400 (Wed, 06 Jul 2005)
New Revision: 46997
Modified:
trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
trunk/mcs/class/corlib/System.Runtime.InteropServices/GCHandle.cs
Log:
2005-07-06 Zoltan Varga <[EMAIL PROTECTED]>
* GCHandle.cs: Add 2.0 FromIntPtr/ToIntPtr methods.
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
2005-07-06 13:19:25 UTC (rev 46996)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
2005-07-06 13:43:46 UTC (rev 46997)
@@ -1,3 +1,7 @@
+2005-07-06 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * GCHandle.cs: Add 2.0 FromIntPtr/ToIntPtr methods.
+
2005-06-08 Sebastien Pouliot <[EMAIL PROTECTED]>
* RuntimeEnvironment.cs: I get better results when calling Demand.
Modified: trunk/mcs/class/corlib/System.Runtime.InteropServices/GCHandle.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.InteropServices/GCHandle.cs
2005-07-06 13:19:25 UTC (rev 46996)
+++ trunk/mcs/class/corlib/System.Runtime.InteropServices/GCHandle.cs
2005-07-06 13:43:46 UTC (rev 46997)
@@ -149,6 +149,16 @@
{
return handle.GetHashCode ();
}
+
+ public static GCHandle FromIntPtr (IntPtr value)
+ {
+ return (GCHandle)value;
+ }
+
+ public static IntPtr ToIntPtr (GCHandle value)
+ {
+ return (IntPtr)value;
+ }
#endif
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches