Table of Contents

Method GetPropValue

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetPropValue<T>(object?, PropertyInfo, T)

Gets property value using the specified object instance and property info.

public static T GetPropValue<T>(object? instance, PropertyInfo propInfo, T defValue)

Parameters

instance object

Instance which contains the property. Specify Null, for the static properties.

propInfo PropertyInfo

Property info.

defValue T

Default property value (used if property value is null).

Returns

T

Type Parameters

T

Type of result.