Method GetPropValue
GetPropValue<T>(object?, PropertyInfo, T)
Gets property value.
public static T GetPropValue<T>(object? instance, PropertyInfo propInfo, T defValue)
Parameters
instance
objectInstance which contains the property.
propInfo
PropertyInfoProperty info.
defValue
TDefault property value (used if property value is null).
Returns
- T
Type Parameters
T
Type of result.