コード例 #1
0
ファイル: Tle.cs プロジェクト: dotMorten/SGP.NET
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         return((Line1.GetHashCode() * 397) ^ Line2.GetHashCode());
     }
 }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Line1.Length != 0)
            {
                hash ^= Line1.GetHashCode();
            }
            if (HasLine2)
            {
                hash ^= Line2.GetHashCode();
            }
            if (HasCity)
            {
                hash ^= City.GetHashCode();
            }
            if (Zipcode != 0L)
            {
                hash ^= Zipcode.GetHashCode();
            }
            if (State.Length != 0)
            {
                hash ^= State.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Line1 != null ? Line1.GetHashCode() : 0);
         result = (result * 397) ^ (Town != null ? Town.GetHashCode() : 0);
         result = (result * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
         return(result);
     }
 }
コード例 #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var result = Id.GetHashCode();
         result = (result * 397) ^ (Line1 != null ? Line1.GetHashCode() : 0);
         result = (result * 397) ^ (Line2 != null ? Line2.GetHashCode() : 0);
         result = (result * 397) ^ (Location != null ? Location.GetHashCode() : 0);
         return(result);
     }
 }
コード例 #5
0
ファイル: Address.cs プロジェクト: zhrjin/NRules
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Line1 != null ? Line1.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Line2 != null ? Line2.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Zip != null ? Zip.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #6
0
        public override int GetHashCode()
        {
            var hashCode = Name.GetHashCode();

            hashCode = hashCode * 37 ^ Line1.GetHashCode();
            hashCode = hashCode * 37 ^ Line2.GetHashCode();
            hashCode = hashCode * 37 ^ City.GetHashCode();
            hashCode = hashCode * 37 ^ State.GetHashCode();
            hashCode = hashCode * 37 ^ ZipCode.GetHashCode();
            hashCode = hashCode * 37 ^ Country.GetHashCode();

            return(hashCode);
        }
コード例 #7
0
ファイル: Address.cs プロジェクト: stipanovs/NHibernateGuide
 public override int GetHashCode()
 {
     unchecked
     {
         var result = Line1.GetHashCode();
         result = (result * 397) ^ (Line2 != null ?
                                    Line2.GetHashCode() : 0);
         result = (result * 397) ^ ZipCode.GetHashCode();
         result = (result * 397) ^ City.GetHashCode();
         result = (result * 397) ^ State.GetHashCode();
         return(result);
     }
 }
コード例 #8
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = Line1 != null?Line1.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Line2 != null ? Line2.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Line3 != null ? Line3.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Line4 != null ? Line4.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Country != null ? Country.GetHashCode() : 0);
                return(hashCode);
            }
        }
コード例 #9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Line1.Length != 0)
            {
                hash ^= Line1.GetHashCode();
            }
            if (Line2.Length != 0)
            {
                hash ^= Line2.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #10
0
 public override int GetHashCode()
 {
     return(Line1.GetHashCode() ^ Line2.GetHashCode());
 }