Method CanResetProp
CanResetProp(object?, PropertyInfo?)
Gets whether property item can be reset.
public static bool CanResetProp(object? instance, PropertyInfo? propInfo)
Parameters
instanceobjectObject instance with the property.
propInfoPropertyInfoProperty info.
Returns
- bool
True if property can be reset.
Remarks
Property can be reset if it is nullable, has DefaultValueAttribute specified or class has reset method which starts with 'Reset' and has property name at the end.