public override bool Equals(object obj) { if (obj == this) { return(true); } if (obj == null || this.GetType() != obj.GetType()) { return(false); } SymbolName other = obj as SymbolName; return(this.Code == other.Code); }
public int CompareTo(object obj) { SymbolName other = obj as SymbolName; return(this.Code.CompareTo(other.Code)); }