Method CanResetProp
CanResetProp(object?, PropertyInfo?)
Gets whether property item can be reset.
public static bool CanResetProp(object? instance, PropertyInfo? propInfo)
Parameters
instance
objectObject instance with the property.
propInfo
PropertyInfoProperty 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.