System.ComponentModel.TypeConverter.SimplePropertyDescriptor.CanResetValue C# (CSharp) Method

CanResetValue() public method

public CanResetValue ( object component ) : bool
component object
return bool
            public override bool CanResetValue(object component) {
                DefaultValueAttribute attr = (DefaultValueAttribute)Attributes[typeof(DefaultValueAttribute)];
                if (attr == null) {
                    return false;
                }
                return (attr.Value.Equals(GetValue(component)));
            }