Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + OriginId.GetHashCode();
         hash = hash * 23 + RevIndex.GetHashCode();
         return(hash);
     }
 }
Exemple #2
0
        public override int GetHashCode()
        {
            var hashCode = -1610014636;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + Time.GetHashCode();
            hashCode = hashCode * -1521134295 + Cost.GetHashCode();
            hashCode = hashCode * -1521134295 + OriginId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Point> .Default.GetHashCode(Origin);

            hashCode = hashCode * -1521134295 + DestinationId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Point> .Default.GetHashCode(Destination);

            return(hashCode);
        }
Exemple #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (OriginId != 0)
            {
                hash ^= OriginId.GetHashCode();
            }
            if (mapInfo_ != null)
            {
                hash ^= MapInfo.GetHashCode();
            }
            hash ^= quadInfos_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }