Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Treat <adam@mono-cvs.ximian.com>2002-09-17 18:44:11 +0400
committerAdam Treat <adam@mono-cvs.ximian.com>2002-09-17 18:44:11 +0400
commitabcf740ff10e164e4568eb93dcd5dc2abf3d0b33 (patch)
tree77922db64c7be0b204a0dad69a6d48390b83bf77 /mcs/class/corlib/System/Activator.cs
parentbebcc609894028415c1ef69b1ae74f16566d56ba (diff)
* Fixed CreateInstance to honor the bflags argument.
svn path=/trunk/mcs/; revision=7561
Diffstat (limited to 'mcs/class/corlib/System/Activator.cs')
-rw-r--r--mcs/class/corlib/System/Activator.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/mcs/class/corlib/System/Activator.cs b/mcs/class/corlib/System/Activator.cs
index 5953285480c..57e14846752 100644
--- a/mcs/class/corlib/System/Activator.cs
+++ b/mcs/class/corlib/System/Activator.cs
@@ -172,15 +172,11 @@ namespace System
for (int i = 0; i < length; ++i) {
atypes [i] = args [i].GetType ();
}
- //FIXME: when GetConstructor works with this parameter list, use it
- //ConstructorInfo ctor = type.GetConstructor (bindingAttr, binder, atypes, null);
- ConstructorInfo ctor = type.GetConstructor (atypes);
+ ConstructorInfo ctor = type.GetConstructor (bindingAttr, binder, atypes, null);
if (ctor == null)
return null;
- //FIXME: when Invoke allows this parameter list, use it
- //return ctor.Invoke (args, bindingAttr, binder, args, culture);
- return ctor.Invoke (args);
+ return ctor.Invoke (bindingAttr, binder, args, culture);
}
public static object CreateInstance (Type type, bool nonPublic)