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:
Diffstat (limited to 'mcs/class/corlib/System/MonoType.cs')
-rw-r--r--mcs/class/corlib/System/MonoType.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/corlib/System/MonoType.cs b/mcs/class/corlib/System/MonoType.cs
index ab4829a3083..985fb497329 100644
--- a/mcs/class/corlib/System/MonoType.cs
+++ b/mcs/class/corlib/System/MonoType.cs
@@ -426,7 +426,7 @@ namespace System
else
throwMissingMethodDescription = "Cannot find method " + name + ".";
} else {
- ParameterInfo[] parameters = m.GetParameters();
+ ParameterInfo[] parameters = m.GetParametersInternal();
for (int i = 0; i < parameters.Length; ++i) {
if (System.Reflection.Missing.Value == args [i] && (parameters [i].Attributes & ParameterAttributes.HasDefault) != ParameterAttributes.HasDefault)
throw new ArgumentException ("Used Missing.Value for argument without default value", "parameters");