2002-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 2 Dec 2002 21:26:11 +0000 (21:26 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 2 Dec 2002 21:26:11 +0000 (21:26 -0000)
* MulticastDelegate.cs: implemented GetInvocationList. I'll check later
if this is the correct order of invocation.

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

mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/MulticastDelegate.cs

index d7f366d91f548af89997a44c885a9046c292209d..ef14e2d46158677bb0839898d7b4e68ce52f14e0 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * MulticastDelegate.cs: implemented GetInvocationList. I'll check later
+       if this is the correct order of invocation.
+
 2002-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * Type.cs: changed the signature of internal_from_name. Modified
index b7ececfd7376d524e1dc6f61366fbac4758b5210..9d37ec317d147ca576090cbdcc78818e77af9a50 100644 (file)
@@ -10,6 +10,7 @@
 // TODO: Remove Missing
 //
 
+using System.Collections;
 using System.Globalization;
 
 namespace System {
@@ -90,7 +91,13 @@ namespace System {
                // </summary>
                public override Delegate[] GetInvocationList()
                {
-                       throw new NotImplementedException();
+                       ArrayList list = new ArrayList ();
+                       list.Add (this);
+                       MulticastDelegate d;
+                       for (d = prev; d != null; d = d.prev)
+                               list.Add (d);
+
+                       return (Delegate []) list.ToArray (typeof (Delegate));
                }
 
                // <summary>