示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (IdA != 0)
            {
                hash ^= IdA.GetHashCode();
            }
            if (LabelA.Length != 0)
            {
                hash ^= LabelA.GetHashCode();
            }
            if (IdB != 0)
            {
                hash ^= IdB.GetHashCode();
            }
            if (LabelB.Length != 0)
            {
                hash ^= LabelB.GetHashCode();
            }
            hash ^= weight_.GetHashCode();
            return(hash);
        }
示例#2
0
 public override int GetHashCode()
 {
     return(IdA.GetHashCode() ^ IdB.GetHashCode());
 }