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