Author: miguel
Date: 2007-06-19 14:32:15 -0400 (Tue, 19 Jun 2007)
New Revision: 80219

Modified:
   trunk/olive/class/agclr/Internal.cs
   trunk/olive/class/agclr/Mono/NativeMethods.cs
Log:
Add clear

Modified: trunk/olive/class/agclr/Internal.cs
===================================================================
--- trunk/olive/class/agclr/Internal.cs 2007-06-19 18:11:10 UTC (rev 80218)
+++ trunk/olive/class/agclr/Internal.cs 2007-06-19 18:32:15 UTC (rev 80219)
@@ -71,6 +71,11 @@
                                throw new Exception ("The collection only 
supports DependencyObjects");
                }
 
+               public void Clear ()
+               {
+                       NativeMethods.collection_clear (native);
+               }
+
                public void Insert (int index, T value)
                {
                        DependencyObject dob = value as DependencyObject;

Modified: trunk/olive/class/agclr/Mono/NativeMethods.cs
===================================================================
--- trunk/olive/class/agclr/Mono/NativeMethods.cs       2007-06-19 18:11:10 UTC 
(rev 80218)
+++ trunk/olive/class/agclr/Mono/NativeMethods.cs       2007-06-19 18:32:15 UTC 
(rev 80219)
@@ -179,6 +179,9 @@
                internal extern static void collection_insert (IntPtr 
collection, int index, IntPtr value);
 
                [DllImport("moon")]
+               internal extern static void collection_clear (IntPtr 
collection);
+               
+               [DllImport("moon")]
                internal extern static IntPtr collection_get_iterator (IntPtr 
collection);
 
                [DllImport("moon")]

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to