Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public int CompareTo(object obj)
        {
            SymbolName other = obj as SymbolName;

            return(this.Code.CompareTo(other.Code));
        }