Table of Contents

Method CanResetProp

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

CanResetProp(object?, PropertyInfo?)

Gets whether property item can be reset.

public static bool CanResetProp(object? instance, PropertyInfo? propInfo)

Parameters

instance object

Object instance with the property.

propInfo PropertyInfo

Property 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.