Skip to content

MemberInfoExtensions.IsProtected Method ​

Definition ​

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

c#
public static bool IsProtected(this MemberInfo member);

View source

Parameters ​

NameTypeDescription
memberMemberInfoThe member.

Returns ​

Boolean

true if the member is Protected or ProtectedInternal; false otherwise.