diff options
Diffstat (limited to 'mcs/class/corlib/System.Reflection.Emit/ConstructorOnTypeBuilderInst.cs')
-rw-r--r-- | mcs/class/corlib/System.Reflection.Emit/ConstructorOnTypeBuilderInst.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mcs/class/corlib/System.Reflection.Emit/ConstructorOnTypeBuilderInst.cs b/mcs/class/corlib/System.Reflection.Emit/ConstructorOnTypeBuilderInst.cs index ea3cee589d0..1f7b30dbce5 100644 --- a/mcs/class/corlib/System.Reflection.Emit/ConstructorOnTypeBuilderInst.cs +++ b/mcs/class/corlib/System.Reflection.Emit/ConstructorOnTypeBuilderInst.cs @@ -104,6 +104,11 @@ namespace System.Reflection.Emit if (!instantiation.IsCreated) throw new NotSupportedException (); + return GetParametersInternal (); + } + + internal override ParameterInfo[] GetParametersInternal () + { ParameterInfo [] res; if (cb is ConstructorBuilder) { ConstructorBuilder cbuilder = (ConstructorBuilder)cb; @@ -129,9 +134,9 @@ namespace System.Reflection.Emit } } - internal override int GetParameterCount () + internal override int GetParametersCount () { - return cb.GetParameterCount (); + return cb.GetParametersCount (); } public override Object Invoke (Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) |