2005-07-06 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / GCHandle.cs
index 30b06ad4941569de415e7122a7293a53e154e11e..42741498c76458a1059924f4563d4df201a3ada1 100644 (file)
@@ -149,6 +149,16 @@ namespace System.Runtime.InteropServices
                {
                        return handle.GetHashCode ();
                }
+
+               public static GCHandle FromIntPtr (IntPtr value)
+               {
+                       return (GCHandle)value;
+               }
+
+               public static IntPtr ToIntPtr (GCHandle value)
+               {
+                       return (IntPtr)value;
+               }
 #endif
        } 
 }