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/PropertyOnTypeBuilderInst.cs | |
parent | 0eb3bdce8381e19231da9d50dc182068eee248c3 (diff) |
Optimize parameters handling to do much less allocation
Diffstat (limited to 'mcs/class/corlib/System.Reflection.Emit/PropertyOnTypeBuilderInst.cs')
-rw-r--r-- | mcs/class/corlib/System.Reflection.Emit/PropertyOnTypeBuilderInst.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mcs/class/corlib/System.Reflection.Emit/PropertyOnTypeBuilderInst.cs b/mcs/class/corlib/System.Reflection.Emit/PropertyOnTypeBuilderInst.cs index 578cf06a5d1..1035f494c86 100644 --- a/mcs/class/corlib/System.Reflection.Emit/PropertyOnTypeBuilderInst.cs +++ b/mcs/class/corlib/System.Reflection.Emit/PropertyOnTypeBuilderInst.cs @@ -115,7 +115,8 @@ namespace System.Reflection.Emit MethodInfo method = GetGetMethod (true); if (method != null) return method.GetParameters (); - return new ParameterInfo [0]; + + return EmptyArray<ParameterInfo>.Value; } public override MethodInfo GetSetMethod (bool nonPublic) |