Skip to content

PropertyInfoExtensions.GetBaseDefinition Method ​

Definition ​

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

c#
public static PropertyInfo GetBaseDefinition(this PropertyInfo property);

View source

Parameters ​

NameTypeDescription
propertyPropertyInfoThe property.

Returns ​

PropertyInfo

The PropertyInfo in the base class property overrides, otherwise property.