public override bool Equals(object obj)
{
DefaultValueAttribute attribute = obj as DefaultValueAttribute;
if (attribute == null)
{
return false;
}
if (this.DefaultValue == null)
{
return (attribute.Value == null);
}
return this.DefaultValue.Equals(attribute.Value);
}