System.ComponentModel.DataObjectAttribute.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj) {
            if (obj == this) {
                return true;
            }

            DataObjectAttribute other = obj as DataObjectAttribute;
            return (other != null) && (other.IsDataObject == IsDataObject);
        }

Usage Example

 public override bool IsDefaultAttribute()
 {
     return(Default.Equals(this));
 }