diff options
author | Marek Safar <marek.safar@gmail.com> | 2013-02-25 17:10:11 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2013-02-25 17:11:04 +0400 |
commit | feb5080d23ca3b0d53a13a77ae39c68734907b6a (patch) | |
tree | 0be94f461d53ecd9c44d961a8ebf96fd1adf5a86 /mcs/class/corlib/System.Reflection.Emit/MethodOnTypeBuilderInst.cs | |
parent | 0eb3bdce8381e19231da9d50dc182068eee248c3 (diff) |
Optimize parameters handling to do much less allocation
Diffstat (limited to 'mcs/class/corlib/System.Reflection.Emit/MethodOnTypeBuilderInst.cs')
-rw-r--r-- | mcs/class/corlib/System.Reflection.Emit/MethodOnTypeBuilderInst.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mcs/class/corlib/System.Reflection.Emit/MethodOnTypeBuilderInst.cs b/mcs/class/corlib/System.Reflection.Emit/MethodOnTypeBuilderInst.cs index aa19ecef3bf..1384f9971e4 100644 --- a/mcs/class/corlib/System.Reflection.Emit/MethodOnTypeBuilderInst.cs +++ b/mcs/class/corlib/System.Reflection.Emit/MethodOnTypeBuilderInst.cs @@ -164,6 +164,11 @@ namespace System.Reflection.Emit public override ParameterInfo [] GetParameters () { + return GetParametersInternal (); + } + + internal override ParameterInfo [] GetParametersInternal () + { throw new NotSupportedException (); } @@ -173,9 +178,9 @@ namespace System.Reflection.Emit } } - internal override int GetParameterCount () + internal override int GetParametersCount () { - return base_method.GetParameterCount (); + return base_method.GetParametersCount (); } public override Object Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) |