Skip to content

EventInfoExtensions.IsPublicOrProtected Method ​

Definition ​

Returns true if the event 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 EventInfo @event);

View source

Parameters ​

NameTypeDescription
eventEventInfoThe event.

Returns ​

Boolean

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