Skip to content

PropertyInfoExtensions.IsPublicOrProtected Method ​

Definition ​

Returns true if the property is public or protected as viewed from an external assembly, that is, its Accessibility is Public, Protected or ProtectedInternal; false otherwise.

c#
public static bool IsPublicOrProtected(this PropertyInfo property);

View source

Parameters ​

NameTypeDescription
propertyPropertyInfoThe property.

Returns ​

Boolean

true if property is Public, Protected or ProtectedInternal; false otherwise.