Example #1
0
 public static bool IsPublic(this PropertyInfo propertyInfo)
 {
     return (propertyInfo?.GetGetMethod(true)?.IsPublic ?? false)
         || (propertyInfo?.GetSetMethod(true)?.IsPublic ?? false);
 }
Example #2
0
 public static bool IsStatic(this PropertyInfo propertyInfo)
 {
     return propertyInfo?.GetGetMethod(true)?.IsStatic
         ?? propertyInfo?.GetSetMethod(true)?.IsStatic
         ?? false;
 }