Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ReferenceType != global::FactSet.Protobuf.Stach.Table.ReferenceType.UnknownReferenceType)
            {
                hash ^= ReferenceType.GetHashCode();
            }
            if (TableId.Length != 0)
            {
                hash ^= TableId.GetHashCode();
            }
            if (ColumnId.Length != 0)
            {
                hash ^= ColumnId.GetHashCode();
            }
            if (RowId.Length != 0)
            {
                hash ^= RowId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((ReferenceType.GetHashCode() * 397) ^ SpanContext.GetHashCode());
     }
 }
Example #3
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="T:System.Object"/>.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     return(uri.GetHashCode() ^ type.GetHashCode());
 }