2004-09-28 Zoltan Varga <vargaz@freemail.hu>
authorZoltan Varga <vargaz@gmail.com>
Tue, 28 Sep 2004 19:20:22 +0000 (19:20 -0000)
committerZoltan Varga <vargaz@gmail.com>
Tue, 28 Sep 2004 19:20:22 +0000 (19:20 -0000)
* Marshal.cs (GetFunctionPointerForDelegate): Implement.

svn path=/trunk/mcs/; revision=34497

mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
mcs/class/corlib/System.Runtime.InteropServices/Marshal.cs

index b119d09075193aed70a82a0187384c62f8e6099a..2c4ddda9bbe39349d17a3f688d59e1533c636193 100644 (file)
@@ -1,5 +1,7 @@
 2004-09-28  Zoltan Varga  <vargaz@freemail.hu>
 
+       * Marshal.cs (GetFunctionPointerForDelegate): Implement.
+       
        * Marshal.cs: Add stubs for missing 2.0 methods.
 
 2004-09-24  Zoltan Varga  <vargaz@freemail.hu>
index 5b6de9a78105fc03b1741f89f93d7fc2a700b24f..0a430b7b908b0d48e1549d14335fc29ef1e1c44f 100644 (file)
@@ -727,12 +727,14 @@ namespace System.Runtime.InteropServices
                        throw new NotImplementedException ();
                }
 
-               [MonoTODO]
+               [MethodImplAttribute(MethodImplOptions.InternalCall)]
+               public static extern IntPtr GetFunctionPointerForDelegateInternal (Delegate d);
+               
                public static IntPtr GetFunctionPointerForDelegate (Delegate d) {
                        if (d == null)
                                throw new ArgumentNullException ("d");
                        
-                       throw new NotImplementedException ();
+                       return GetFunctionPointerForDelegateInternal (d);
                }
 #endif
        }