IsPublicInstance in ReflectionsExtensions checks for non-public setter method
Issue #26
resolved
Hi folks,
in ReflectionsExtensions the method IsPublicInstance that was introduced with yesterdays update to support the latest SQLite-Net 2.4.1 version performs a wrong check I think.
return propertyInfo != null &&
((propertyInfo.GetMethod != null && !propertyInfo.GetMethod.IsStatic && propertyInfo.GetMethod.IsPublic) ||
(propertyInfo.SetMethod != null && !propertyInfo.SetMethod.IsStatic && !propertyInfo.SetMethod.IsPublic));
It is checking for the setter method to be not public (third line, last check). Should be instead
return propertyInfo != null &&
((propertyInfo.GetMethod != null && !propertyInfo.GetMethod.IsStatic && propertyInfo.GetMethod.IsPublic) ||
(propertyInfo.SetMethod != null && !propertyInfo.SetMethod.IsStatic && propertyInfo.SetMethod.IsPublic));
Comments (3)
-
-
-
- changed status to resolved
Fixed in the master branch
- Log in to comment
Good catch.