Table of Contents

Method GetPropValue

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

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

Gets property value.

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

Parameters

instance object

Instance which contains the property.

propInfo PropertyInfo

Property info.

defValue T

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

Returns

T

Type Parameters

T

Type of result.