System.ComponentModel.DebugReflectPropertyDescriptor.CanResetValue C# (CSharp) Method

CanResetValue() public method

public CanResetValue ( object component ) : bool
component object
return bool
        public override bool CanResetValue(object component) {
            if (IsExtender) {
                return false;
            }

            if (DefaultValue != noValue) {
                return !object.Equals(GetValue(component),DefaultValue);
            }
            
            if (ResetMethodValue != null) {
                if (ShouldSerializeMethodValue != null) {
                    component = GetDebugInvokee(componentClass, component);
                    try {
                        return (bool)ShouldSerializeMethodValue.Invoke(component, null);
                    }
                    catch {}
                }
                return true;
            }
            
            if (AmbientValue != noValue) {
                return ShouldSerializeValue(component);
            }
            
            return false;
        }