Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int first  = Begin.GetHashCode();
            int second = End.GetHashCode();

            return(first ^ (second << 2));
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            var hash = 23;

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

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

            result = 31 * result + End.GetHashCode();
            result = 31 * result + _fastaSequence.GetHashCode();
            return(result);
        }
Ejemplo n.º 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());
     }
 }
Ejemplo n.º 8
0
 /// <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());
     }
 }
Ejemplo n.º 9
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Begin.GetHashCode();
         hashCode = (hashCode * 397) ^ End.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 10
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 31 + End.GetHashCode();
         hash = hash * 31 + Begin.GetHashCode();
         return(hash);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
    }
Ejemplo n.º 13
0
 public override int GetHashCode()
 {
     unchecked {
         return(((Begin?.GetHashCode() ?? 0) * 397) ^ (End?.GetHashCode() ?? 0));
     }
 }
Ejemplo n.º 14
0
 public override int GetHashCode()
 {
     return(unchecked (27 * Begin.GetHashCode() + End.GetHashCode() + DurationValue.GetHashCode()));
 }
Ejemplo n.º 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()));
 }
Ejemplo n.º 16
0
 public override int GetHashCode()
 {
     return(Begin.GetHashCode() ^ End.GetHashCode());
 }
Ejemplo n.º 17
0
 public override int GetHashCode()
 {
     return(1903003160 ^ Begin.GetHashCode() ^ End.GetHashCode());
 }
Ejemplo n.º 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());
 }
Ejemplo n.º 19
0
 public override int GetHashCode()
 {
     return(Position.GetHashCode() +
            Begin.GetHashCode() +
            Angle.GetHashCode());
 }