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.Reflection/MonoProperty.cs')
-rw-r--r--mcs/class/corlib/System.Reflection/MonoProperty.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/corlib/System.Reflection/MonoProperty.cs b/mcs/class/corlib/System.Reflection/MonoProperty.cs
index f41512ca268..9760c197006 100644
--- a/mcs/class/corlib/System.Reflection/MonoProperty.cs
+++ b/mcs/class/corlib/System.Reflection/MonoProperty.cs
@@ -119,7 +119,7 @@ namespace System.Reflection {
if (info.get_method != null) {
return info.get_method.ReturnType;
} else {
- ParameterInfo[] parameters = info.set_method.GetParameters ();
+ ParameterInfo[] parameters = info.set_method.GetParametersInternal ();
return parameters [parameters.Length - 1].ParameterType;
}
@@ -184,11 +184,11 @@ namespace System.Reflection {
if (info.get_method != null) {
res = info.get_method.GetParameters ();
} else if (info.set_method != null) {
- ParameterInfo[] src = info.set_method.GetParameters ();
+ ParameterInfo[] src = info.set_method.GetParametersInternal ();
res = new ParameterInfo [src.Length - 1];
Array.Copy (src, res, res.Length);
} else
- return new ParameterInfo [0];
+ return EmptyArray<ParameterInfo>.Value;
for (int i = 0; i < res.Length; ++i) {
ParameterInfo pinfo = res [i];