Skip to content

PropertyInfoExtensions.HasPublicOrProtectedOverloads Method ​

Definition ​

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

c#
public static bool HasPublicOrProtectedOverloads(this PropertyInfo property);

View source

Parameters ​

NameTypeDescription
propertyPropertyInfoThe property.

Returns ​

Boolean

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