* MonoProperty.cs: return correct MethodInfo for
authorGert Driesen <drieseng@users.sourceforge.net>
Tue, 18 May 2004 17:17:52 +0000 (17:17 -0000)
committerGert Driesen <drieseng@users.sourceforge.net>
Tue, 18 May 2004 17:17:52 +0000 (17:17 -0000)
property with only a get or set method. Fixes
bug #58661.

svn path=/trunk/mcs/; revision=27601

mcs/class/corlib/System.Reflection/ChangeLog
mcs/class/corlib/System.Reflection/MonoProperty.cs

index bb719cbfdb96c465ab661dbde720867c493c6ed0..5948e235eac7202eeb5498139b4c8739265ee136 100644 (file)
@@ -1,3 +1,9 @@
+2004-05-18  Gert Driesen (drieseng@users.sourceforge.net)
+
+       * MonoProperty.cs: return correct MethodInfo for 
+       property with only a get or set method. Fixes
+       bug #58661.
+
 2004-05-18  Sebastien Pouliot  <sebastien@ximian.com>
 
        * Assembly.cs: Return an empty Evidence collection to avoid 
index eb7439e9d9593e065743ae250340546480d70bc4..0074b78b78ac267ea3bd13acb0876357f61a2913 100755 (executable)
@@ -113,9 +113,9 @@ namespace System.Reflection {
                        
                        MonoPropertyInfo.get_property_info (this, out info, PInfo.GetMethod | PInfo.SetMethod);
                        if (info.set_method != null && (nonPublic || info.set_method.IsPublic))
-                               nget = 1;
-                       if (info.get_method != null && (nonPublic || info.get_method.IsPublic))
                                nset = 1;
+                       if (info.get_method != null && (nonPublic || info.get_method.IsPublic))
+                               nget = 1;
 
                        MethodInfo[] res = new MethodInfo [nget + nset];
                        int n = 0;