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:
authorMartin Baulig <martin@novell.com>2002-03-20 16:23:58 +0300
committerMartin Baulig <martin@novell.com>2002-03-20 16:23:58 +0300
commit4f30aa5593077491764ec985b99975dfd91f9a5e (patch)
treee78146b1deba0f5cdd7353c460c6d0b874544605 /mcs/class/corlib/System.Reflection/ConstructorInfo.cs
parent35a9135704562cee45f31322debc180bccd37f9d (diff)
2002-03-20 Martin Baulig <martin@gnome.org>
* ConstructorInfo.cs (Invoke): Implemented, call the abstract Invoke. * MonoMethod.cs (MonoCMethod.Invoke): Implemented, call InternalInvoke. svn path=/trunk/mcs/; revision=3238
Diffstat (limited to 'mcs/class/corlib/System.Reflection/ConstructorInfo.cs')
-rw-r--r--mcs/class/corlib/System.Reflection/ConstructorInfo.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/mcs/class/corlib/System.Reflection/ConstructorInfo.cs b/mcs/class/corlib/System.Reflection/ConstructorInfo.cs
index 04fcc09b8f7..3e90ea0e531 100644
--- a/mcs/class/corlib/System.Reflection/ConstructorInfo.cs
+++ b/mcs/class/corlib/System.Reflection/ConstructorInfo.cs
@@ -23,11 +23,12 @@ namespace System.Reflection {
get {return MemberTypes.Constructor;}
}
- [MonoTODO]
public object Invoke (object[] parameters)
{
- //FIXME
- return null;
+ if (parameters == null)
+ parameters = new object [0];
+
+ return Invoke (BindingFlags.CreateInstance, null, parameters, null);
}
public abstract object Invoke (BindingFlags invokeAttr, Binder binder, object[] parameters,