MemberInfoExtensions.IsPublicOrProtected Method
Definition
Returns true if the member 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 MemberInfo member);Parameters
| Name | Type | Description |
|---|---|---|
member | MemberInfo | The member. |
Returns
true if the member is Public, Protected or ProtectedInternal; false otherwise.