Skip to content

MethodBaseExtensions.IsProtected Method ​

Definition ​

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

c#
public static bool IsProtected(this MethodBase method);

View source

Parameters ​

NameTypeDescription
methodMethodBaseThe method.

Returns ​

Boolean

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