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