Skip to content

ConstructorInfoExtensions.HasPublicOrProtectedOverloads Method ​

Definition ​

Returns true if the specified ConstructorInfo has public or protected overloads, as viewed from an external assembly, that is, their Accessibility is Public, Protected or ProtectedInternal; false otherwise.

c#
public static bool HasPublicOrProtectedOverloads(this ConstructorInfo constructor);

View source

Parameters ​

NameTypeDescription
constructorConstructorInfoThe method.

Returns ​

Boolean

true if constructor has public or protected overloads; false otherwise.