PropertyInfoExtensions.IsProtected Method
Definition
Returns true if the property is protected as viewed from an external assembly, that is, its Accessibility is Protected or ProtectedInternal; false otherwise.
c#
public static bool IsProtected(this PropertyInfo property);Parameters
| Name | Type | Description |
|---|---|---|
property | PropertyInfo | The property. |
Returns
true if property is Protected or ProtectedInternal; false otherwise.