예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((LineNumber.GetHashCode() * 397) ^ (RowText != null ? RowText.GetHashCode() : 0));
     }
 }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LineNumber != 0L)
            {
                hash ^= LineNumber.GetHashCode();
            }
            if (timestampTime_ != null)
            {
                hash ^= TimestampTime.GetHashCode();
            }
            if (StreamType.Length != 0)
            {
                hash ^= StreamType.GetHashCode();
            }
            if (Text.Length != 0)
            {
                hash ^= Text.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #3
0
        public override int GetHashCode()
        {
            int hashItemId     = ItemId == 0 ? 0 : ItemId.GetHashCode();
            int hashLineNumber = LineNumber == 0 ? 0 : LineNumber.GetHashCode();
            int hashShipmentId = ShipmentId == "" ? 0 : ShipmentId.GetHashCode();

            return(hashItemId * hashLineNumber * hashShipmentId);
        }
예제 #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = (int)2166136261;
         hash = (hash * 16777619) ^ LineNumber.GetHashCode();
         return((hash * 16777619) ^ VisitCount.GetHashCode());
     }
 }
예제 #5
0
        public override int GetHashCode()
        {
            int hashCode = -1644089817;

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

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

            hashCode = hashCode * -1521134295 + LineNumber.GetHashCode();
            hashCode = hashCode * -1521134295 + IsLeftSideLineNumber.GetHashCode();
            return(hashCode);
        }
예제 #6
0
 public override int GetHashCode()
 {
     // Overflow is fine, just wrap
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (File == null ? 0 : File.GetHashCode());
         hash = hash * 23 + LineNumber.GetHashCode();
         hash = hash * 23 + LinePosition.GetHashCode();
         hash = hash * 23 + (ErrorMessage == null ? 0 : ErrorMessage.GetHashCode());
         return(hash);
     }
 }
예제 #7
0
        public override int GetHashCode()
        {
            var hashCode = -1659163720;

            hashCode = hashCode * -1521134295 + EqualityComparer <Uri> .Default.GetHashCode(Uri);

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

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

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

            return(hashCode);
        }
예제 #8
0
 public override int GetHashCode()
 {
     return(BookmarkType.GetHashCode() ^ LineNumber.GetHashCode());
 }
 /// <summary>
 /// Generates a hash code for the  object.
 /// </summary>
 /// <returns>A hash code</returns>
 public override int GetHashCode()
 {
     return(Type.GetHashCode() ^ SessionId.GetHashCode() ^ ObjectId.GetHashCode() ^ ObjectType.GetHashCode()
            ^ StatementName.GetHashCode() ^ LineNumber.GetHashCode() ^ TimeStampRelativeMSec.GetHashCode());
 }
예제 #10
0
 public override int GetHashCode() => LineNumber.GetHashCode() +
 Filename.GetHashCode() +
 SourceString.GetHashCode();
예제 #11
0
파일: Line.cs 프로젝트: pcluddite/tbasic
 /// <summary>
 /// Hash code for the LineNumber
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(LineNumber.GetHashCode());
 }