コード例 #1
0
        public override bool Equals(Object other)
        {
            SynonymNode snOther = (SynonymNode)other;

            if (snOther.Id == this.Id && snOther.Name == this.Name)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #2
0
        public int CompareTo(Object other)
        {
            SynonymNode snOther = (SynonymNode)other;

            return(this.Name.CompareTo(snOther.Name));
        }