Skip to content

MethodBaseExtensions.IsPublicOrProtected Method ​

Definition ​

Returns true if the method 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 MethodBase method);

View source

Parameters ​

NameTypeDescription
methodMethodBaseThe method.

Returns ​

Boolean

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