using System;
namespace System.Runtime.InteropServices {
+#if NET_2_0
+ [ComVisible (true)]
+#endif
public struct HandleRef {
#region Fields
{
return value.Handle;
}
-
+
#endregion // Type Conversions
+#if NET_2_0
+ public static IntPtr ToIntPtr(HandleRef value)
+ {
+ return value.Handle;
+ // Why did MS add a function for this?
+ }
+#endif
}
}