2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Fri, 10 Jan 2003 02:11:16 +0000 (02:11 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Fri, 10 Jan 2003 02:11:16 +0000 (02:11 -0000)
* AppDomain.cs: implemented DoCallBack method.
* MonoType.cs:
(GetConstructorImpl): when the flag is BindingFlags.Default, set it to
Public, Instance.

NUnit2 tests start moving.

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

mcs/class/corlib/System/AppDomain.cs
mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/MonoType.cs

index 6865721ae2bd2a0bd2f6b94cb7bf0229bdc8e486..e49f731d4bfe4221f1b6e4e72631e07f7bbd4c18 100755 (executable)
@@ -386,10 +386,10 @@ namespace System {
                }
 
 
-               [MonoTODO]
                public void DoCallBack (CrossAppDomainDelegate theDelegate)
                {
-                       throw new NotImplementedException ();
+                       if (theDelegate != null)
+                               theDelegate ();
                }
                
                public override bool Equals (object other)
index 6288282ac2b3e547f488501e9242d452b088c975..7a406bf1a4aa24df07b0e29dbe783c8befb3cfb7 100644 (file)
@@ -1,4 +1,13 @@
 
+2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * AppDomain.cs: implemented DoCallBack method.
+       * MonoType.cs:
+       (GetConstructorImpl): when the flag is BindingFlags.Default, set it to
+       Public, Instance.
+
+       NUnit2 tests start moving.
+
 2003-01-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * Activator.cs: fixed bug #36052. Also added checks to avoid trying to
index d0f0f0240121f1a13f4e1c1d2a2869c98531689b..c7f0074d300800f2612a20cfb6c2bd91de55f0f3 100644 (file)
@@ -56,6 +56,9 @@ namespace System
                                                                       Type[] types,
                                                                       ParameterModifier[] modifiers)
                {
+                       if (bindingAttr == BindingFlags.Default)
+                               bindingAttr = BindingFlags.Public | BindingFlags.Instance;
+
                        ConstructorInfo[] methods = GetConstructors (bindingAttr);
                        ConstructorInfo found = null;
                        MethodBase[] match;