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
instanceobjectInstance which contains the property. Specify Null, for the static properties.
propInfoPropertyInfoProperty info.
defValueTDefault property value (used if property value is null).
Returns
- T
Type Parameters
TType of result.