MrKWatkins.Reflection 1.3.1 Help

PropertyInfoExtensions Class

Definition

Extension methods for PropertyInfo.

public static class PropertyInfoExtensions

Methods

Name

Description

EnumerateOverloads(PropertyInfo)

Enumerates the overloads of the specified property that are declared in the same type. Only indexer properties can be overloaded.

GetAccessibility(PropertyInfo)

Returns the Accessibility of the specified PropertyInfo.

GetBaseDefinition(PropertyInfo)

If the specified PropertyInfo overrides a property in a base class then this returns the base PropertyInfo, otherwise it returns the specified PropertyInfo.

GetVirtuality(PropertyInfo)

Gets the Virtuality of the specified PropertyInfo.

HasInitSetter(PropertyInfo)

Returns true if the specified PropertyInfo has a setter marked with the init modifier; false otherwise.

HasPublicOrProtectedOverloads(PropertyInfo)

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

IsAbstract(PropertyInfo)

Returns true if the specified PropertyInfo is abstract; false otherwise.

IsAbstractOrVirtual(PropertyInfo)

Returns true if the specified PropertyInfo is abstract or virtual; false otherwise.

IsIndexer(PropertyInfo)

Returns true if the specified PropertyInfo is an indexer property; false otherwise.

IsNew(PropertyInfo)

Returns true if the specified PropertyInfo is a property marked with the new modifier; false otherwise.

IsProtected(PropertyInfo)

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

IsPublic(PropertyInfo)

Returns true if the property is public, i.e. its Accessibility is Public; false otherwise.

IsPublicOrProtected(PropertyInfo)

Returns true if the property is public or protected as viewed from an external assembly, i.e. its Accessibility is Public, Protected or ProtectedInternal; false otherwise.

IsRequired(PropertyInfo)

Returns true if the specified PropertyInfo represents a property marked with the required modifier; false otherwise.

IsStatic(PropertyInfo)

Returns true if the specified PropertyInfo represents a static property; false otherwise.

Last modified: 17 December 2024