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

            if (Id != 0L)
            {
                hash ^= Id.GetHashCode();
            }
            if (FieldKey.Length != 0)
            {
                hash ^= FieldKey.GetHashCode();
            }
            if (UserKey.Length != 0)
            {
                hash ^= UserKey.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (FieldSize != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FieldSize);
            }
            if (IsActive != false)
            {
                hash ^= IsActive.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 0;

            hash = (hash * 397) ^ (UserKey.GetHashCode());
            hash = (hash * 397) ^ (Id == null ? 0 : Id.GetHashCode());
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 37;

            hash += 7 * SourceUniqueCode.GetHashCode();
            hash += 7 * TargetUniqueCode.GetHashCode();
            hash += 7 * ValidFrom.GetHashCode();
            hash += 7 * Rate.GetHashCode();
            hash += 7 * UserKey.GetHashCode();
            return(hash);
        }
Exemple #4
0
 public override int GetHashCode()
 {
     return(UserKey.GetHashCode());
 }