Method GetPropValue
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
objectInstance which contains the property. Specify Null, for the static properties.
propInfo
PropertyInfoProperty info.
defValue
TDefault property value (used if property value is null).
Returns
- T
Type Parameters
T
Type of result.