diff options
Diffstat (limited to 'mcs/class/corlib/System')
-rw-r--r-- | mcs/class/corlib/System/Attribute.cs | 4 | ||||
-rw-r--r-- | mcs/class/corlib/System/Delegate.cs | 8 | ||||
-rw-r--r-- | mcs/class/corlib/System/Exception.cs | 2 | ||||
-rw-r--r-- | mcs/class/corlib/System/MonoType.cs | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/mcs/class/corlib/System/Attribute.cs b/mcs/class/corlib/System/Attribute.cs index c82dd8406f4..48f5a0f5662 100644 --- a/mcs/class/corlib/System/Attribute.cs +++ b/mcs/class/corlib/System/Attribute.cs @@ -346,7 +346,7 @@ namespace System var method = ((MethodInfo) member).GetBaseMethod (); while (true) { - var param = method.GetParameters () [parameter.Position]; + var param = method.GetParametersInternal () [parameter.Position]; if (param.IsDefined (attributeType, false)) return true; @@ -377,7 +377,7 @@ namespace System var custom_attributes = new List<Attribute> (); while (true) { - var param = method.GetParameters () [parameter.Position]; + var param = method.GetParametersInternal () [parameter.Position]; var param_attributes = (Attribute []) param.GetCustomAttributes (attributeType, false); foreach (var param_attribute in param_attributes) { var param_type = param_attribute.GetType (); diff --git a/mcs/class/corlib/System/Delegate.cs b/mcs/class/corlib/System/Delegate.cs index 4a936201b0b..7610e43dcba 100644 --- a/mcs/class/corlib/System/Delegate.cs +++ b/mcs/class/corlib/System/Delegate.cs @@ -191,8 +191,8 @@ namespace System else return null; - ParameterInfo[] delargs = invoke.GetParameters (); - ParameterInfo[] args = method.GetParameters (); + ParameterInfo[] delargs = invoke.GetParametersInternal (); + ParameterInfo[] args = method.GetParametersInternal (); bool argLengthMatch; @@ -311,7 +311,7 @@ namespace System throw new ArgumentException ("type is not subclass of MulticastDelegate."); MethodInfo invoke = type.GetMethod ("Invoke"); - ParameterInfo [] delargs = invoke.GetParameters (); + ParameterInfo [] delargs = invoke.GetParametersInternal (); Type[] delargtypes = new Type [delargs.Length]; for (int i=0; i<delargs.Length; i++) @@ -408,7 +408,7 @@ namespace System method_info = m_target.GetType ().GetMethod (data.method_name, mtypes); } - if (Method.IsStatic && (args != null ? args.Length : 0) == Method.GetParameters ().Length - 1) { + if (Method.IsStatic && (args != null ? args.Length : 0) == Method.GetParametersCount () - 1) { // The delegate is bound to m_target if (args != null) { object[] newArgs = new object [args.Length + 1]; diff --git a/mcs/class/corlib/System/Exception.cs b/mcs/class/corlib/System/Exception.cs index 3fe55050099..0a9ef607c75 100644 --- a/mcs/class/corlib/System/Exception.cs +++ b/mcs/class/corlib/System/Exception.cs @@ -346,7 +346,7 @@ namespace System internal void GetFullNameForStackTrace (StringBuilder sb, MethodBase mi) { - ParameterInfo[] p = mi.GetParameters (); + ParameterInfo[] p = mi.GetParametersInternal (); sb.Append (mi.DeclaringType.ToString ()); sb.Append ("."); sb.Append (mi.Name); 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"); |