MrKWatkins.Reflection 1.3.1 Help

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.

public static PropertyInfo GetBaseDefinition(this PropertyInfo property);

Parameters

Name

Type

Description

property

PropertyInfo

The property.

Returns

PropertyInfo

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

Last modified: 17 December 2024