Beispiel #1
0
        public override int GetHashCode()
        {
            int first  = Begin.GetHashCode();
            int second = End.GetHashCode();

            return(first ^ (second << 2));
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Begin != 0)
            {
                hash ^= Begin.GetHashCode();
            }
            if (End != 0)
            {
                hash ^= End.GetHashCode();
            }
            if (Text.Length != 0)
            {
                hash ^= Text.GetHashCode();
            }
            if (conceptInfoCase_ == ConceptInfoOneofCase.DBpediaInfo)
            {
                hash ^= DBpediaInfo.GetHashCode();
            }
            if (conceptInfoCase_ == ConceptInfoOneofCase.BabelNetInfo)
            {
                hash ^= BabelNetInfo.GetHashCode();
            }
            if (conceptInfoCase_ == ConceptInfoOneofCase.NerInfo)
            {
                hash ^= NerInfo.GetHashCode();
            }
            hash ^= (int)conceptInfoCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            var hash = 23;

            hash = hash * 31 + Begin.GetHashCode();
            return(hash * 31 + End.GetHashCode());
        }
Beispiel #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Begin != null ? Begin.GetHashCode() : 0) * 397) ^ (End != null ? End.GetHashCode() : 0));
     }
 }
Beispiel #5
0
        public override int GetHashCode()
        {
            var hashCode = 1903003160;

            hashCode = hashCode * -1521134295 + Begin.GetHashCode();
            hashCode = hashCode * -1521134295 + End.GetHashCode();
            return(hashCode);
        }
Beispiel #6
0
        public override int GetHashCode()
        {
            int result = Begin.GetHashCode();

            result = 31 * result + End.GetHashCode();
            result = 31 * result + _fastaSequence.GetHashCode();
            return(result);
        }
Beispiel #7
0
 /// <summary>
 /// Return the HashCode of this object.
 /// </summary>
 /// <returns>The HashCode of this object.</returns>
 public override Int32 GetHashCode()
 {
     unchecked
     {
         return(Begin.GetHashCode() * 11 ^
                End.GetHashCode());
     }
 }
 /// <summary>
 /// Return the hash code of this object.
 /// </summary>
 /// <returns>The hash code of this object.</returns>
 public override Int32 GetHashCode()
 {
     unchecked
     {
         return(Weekday.GetHashCode() * 5 ^
                Begin.GetHashCode() * 3 ^
                End.GetHashCode());
     }
 }
Beispiel #9
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Begin.GetHashCode();
         hashCode = (hashCode * 397) ^ End.GetHashCode();
         return(hashCode);
     }
 }
Beispiel #10
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 31 + End.GetHashCode();
         hash = hash * 31 + Begin.GetHashCode();
         return(hash);
     }
 }
Beispiel #11
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Identifier.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Country != null ? Country.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FIPSCountryId != null ? FIPSCountryId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CallSign != null ? CallSign.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Latitude.GetHashCode();
         hashCode = (hashCode * 397) ^ Longitude.GetHashCode();
         hashCode = (hashCode * 397) ^ Elevation.GetHashCode();
         hashCode = (hashCode * 397) ^ Begin.GetHashCode();
         hashCode = (hashCode * 397) ^ End.GetHashCode();
         return(hashCode);
     }
 }
Beispiel #12
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (begin_ != null)
        {
            hash ^= Begin.GetHashCode();
        }
        if (end_ != null)
        {
            hash ^= End.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Beispiel #13
0
 public override int GetHashCode()
 {
     unchecked {
         return(((Begin?.GetHashCode() ?? 0) * 397) ^ (End?.GetHashCode() ?? 0));
     }
 }
Beispiel #14
0
 public override int GetHashCode()
 {
     return(unchecked (27 * Begin.GetHashCode() + End.GetHashCode() + DurationValue.GetHashCode()));
 }
Beispiel #15
0
 /// <summary>
 /// Get a hash code for this ip address range
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     return((Begin == null ? 0 : Begin.GetHashCode()) + (End == null ? 0 : End.GetHashCode()));
 }
Beispiel #16
0
 public override int GetHashCode()
 {
     return(Begin.GetHashCode() ^ End.GetHashCode());
 }
Beispiel #17
0
 public override int GetHashCode()
 {
     return(1903003160 ^ Begin.GetHashCode() ^ End.GetHashCode());
 }
Beispiel #18
0
 /// <summary>
 /// Returns the hash code for this CancelMessage instance.
 /// </summary>
 /// <returns>An integer representing the hash code of this instace of the CancelMessage class.</returns>
 public override int GetHashCode()
 {
     return(MessageLength.GetHashCode() ^ Id.GetHashCode() ^ Index.GetHashCode() ^ Begin.GetHashCode() ^
            Length.GetHashCode());
 }
Beispiel #19
0
 public override int GetHashCode()
 {
     return(Position.GetHashCode() +
            Begin.GetHashCode() +
            Angle.GetHashCode());
 }