diff options
author | Adam Treat <adam@mono-cvs.ximian.com> | 2002-09-17 18:44:11 +0400 |
---|---|---|
committer | Adam Treat <adam@mono-cvs.ximian.com> | 2002-09-17 18:44:11 +0400 |
commit | abcf740ff10e164e4568eb93dcd5dc2abf3d0b33 (patch) | |
tree | 77922db64c7be0b204a0dad69a6d48390b83bf77 /mcs/class/corlib/System/Activator.cs | |
parent | bebcc609894028415c1ef69b1ae74f16566d56ba (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.cs | 8 |
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) |