projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2005-07-06 Zoltan Varga <vargaz@freemail.hu>
[mono.git]
/
mcs
/
class
/
corlib
/
System.Runtime.InteropServices
/
GCHandle.cs
diff --git
a/mcs/class/corlib/System.Runtime.InteropServices/GCHandle.cs
b/mcs/class/corlib/System.Runtime.InteropServices/GCHandle.cs
index 30b06ad4941569de415e7122a7293a53e154e11e..42741498c76458a1059924f4563d4df201a3ada1 100644
(file)
--- a/
mcs/class/corlib/System.Runtime.InteropServices/GCHandle.cs
+++ b/
mcs/class/corlib/System.Runtime.InteropServices/GCHandle.cs
@@
-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
}
}