Implement a missing Marshal.Copy overload
authorMarek Habersack <grendel@twistedcode.net>
Mon, 29 Jan 2007 19:46:31 +0000 (19:46 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Mon, 29 Jan 2007 19:46:31 +0000 (19:46 -0000)
svn path=/trunk/mcs/; revision=71908

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

index b19d5559d716259d54badc763c2873d821654d1f..c2a914119b1a9dc1fef0b483b07ac0f119ebcde3 100644 (file)
@@ -1,3 +1,7 @@
+2007-01-29  Marek Habersack  <grendello@gmail.com>
+
+       * Marshal.cs: Implement a missing Marshal.Copy overload.
+
 2007-01-11  Jonathan Chambers  <joncham@gmail.com>
 
        * Marshal.cs: Implement Marshal.ReAllocCoTaskMem.
index f9c08fb709189cc60fa3f3046ddda204a1e4a97f..f57828c67a64774603358d844eb3d9cc68f93f4a 100644 (file)
@@ -176,6 +176,13 @@ namespace System.Runtime.InteropServices
                        copy_from_unmanaged (source, startIndex, destination, length);
                }
 
+#if NET_2_0
+               public static void Copy (IntPtr source, IntPtr[] destination, int startIndex, int length)
+               {
+                       copy_from_unmanaged (source, startIndex, destination, length);
+               }
+#endif
+               
                public static object CreateWrapperOfType (object o, Type t)
                {
                        __ComObject co = o as __ComObject;