Skip to content

TypeExtensions.IsProtected Method ​

Definition ​

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

c#
public static bool IsProtected(this Type type);

View source

Parameters ​

NameTypeDescription
typeTypeThe type.

Returns ​

Boolean

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