Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((RowKey != null ? RowKey.GetHashCode() : 0) * 397) ^ (PartitionKey != null ? PartitionKey.GetHashCode() : 0));
     }
 }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var res = (Id * 397) ^ (PropertyAsEncrypted != null ? PropertyAsEncrypted.GetHashCode() : 0);
         res = (res * 397) ^ (PlainProperty != null ? PlainProperty.GetHashCode() : 0);
         res = (res * 397) ^ (SecondPropertyAsEncrypted != null ? SecondPropertyAsEncrypted.GetHashCode() : 0);
         res = (res * 397) ^ (PartitionKey != null ? PartitionKey.GetHashCode() : 0);
         res = (res * 397) ^ (RowKey != null ? RowKey.GetHashCode() : 0);
         return(res);
     }
 }
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = PartitionKey?.GetHashCode() ?? 0;
                hashCode = (hashCode * 397) ^ (RowKey?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (Created?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ Modified.GetHashCode();
                hashCode = (hashCode * 397) ^ (Deleted?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (Data?.GetHashCode() ?? 0);

                return(hashCode);
            }
        }
Пример #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (PartitionKey != null ? PartitionKey.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RowKey != null ? RowKey.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Timestamp.GetHashCode();
         hashCode = (hashCode * 397) ^ Cost.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Purchased.GetHashCode();
         hashCode = (hashCode * 397) ^ Count;
         hashCode = (hashCode * 397) ^ GlobalGuid.GetHashCode();
         hashCode = (hashCode * 397) ^ Awesomeness.GetHashCode();
         return(hashCode);
     }
 }
Пример #5
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = PartitionKey?.GetHashCode() ?? 0;
                hashCode = (hashCode * 397) ^ (RowKey?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ Created.GetHashCode();
                hashCode = (hashCode * 397) ^ (EventType?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (OperationName?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (OrganizationId?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (SubscriptionId?.GetHashCode() ?? 0);
                hashCode = (hashCode * 397) ^ (Data?.GetHashCode() ?? 0);

                return(hashCode);
            }
        }
Пример #6
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (RowKey.Length != 0)
                    {
                        hash ^= RowKey.GetHashCode();
                    }
                    if (FamilyName.Length != 0)
                    {
                        hash ^= FamilyName.GetHashCode();
                    }
                    if (Qualifier.Length != 0)
                    {
                        hash ^= Qualifier.GetHashCode();
                    }
                    if (TimestampMicros != 0L)
                    {
                        hash ^= TimestampMicros.GetHashCode();
                    }
                    if (Value.Length != 0)
                    {
                        hash ^= Value.GetHashCode();
                    }
                    if (Label.Length != 0)
                    {
                        hash ^= Label.GetHashCode();
                    }
                    if (Error != false)
                    {
                        hash ^= Error.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
Пример #7
0
 /// <summary>
 /// Hash code
 /// </summary>
 public override int GetHashCode()
 {
     return(PartitionKey.GetHashCode() * RowKey.GetHashCode());
 }
 public override int GetHashCode() => PartitionKey.GetHashCode() + RowKey.GetHashCode() * 37;