property with only a get or set method. Fixes
bug #58661.
svn path=/trunk/mcs/; revision=27601
+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
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;