예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((PartitionKey.GetHashCode() * 397) ^ Key.GetHashCode());
     }
 }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((PartitionKey != null ? PartitionKey.GetHashCode() : 0) * 397) ^ (RowKey != null ? RowKey.GetHashCode() : 0));
     }
 }
 public override int GetHashCode()
 {
     // Avoid a dependency on Migration.Utils for now.
     unchecked
     {
         return(31 * PartitionKey.GetHashCode() + RowKey.GetHashCode());
     }
 }
예제 #4
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);
            }
        }
예제 #6
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);
     }
 }
예제 #7
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);
            }
        }
예제 #8
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = PartitionKey != null?PartitionKey.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
                hashCode = (int)((hashCode * 397) ^ SizeBytes);
                hashCode = (hashCode * 397) ^ (MD5Hash != null ? MD5Hash.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Width;
                hashCode = (hashCode * 397) ^ Height;
                hashCode = (hashCode * 397) ^ DateAddedUtc.GetHashCode();
                hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (MimeType != null ? MimeType.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (FileExtension != null ? FileExtension.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Tags != null ? Tags.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Thumbnails != null ? Thumbnails.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (int)ImageType;

                return(hashCode);
            }
        }
예제 #9
0
 /// <summary>
 /// Hash code
 /// </summary>
 public override int GetHashCode()
 {
     return(PartitionKey.GetHashCode() * RowKey.GetHashCode());
 }
 public override int GetHashCode() => PartitionKey.GetHashCode() + RowKey.GetHashCode() * 37;
예제 #11
0
 public override int GetHashCode()
 {
     return(Hasher.Start.With(PartitionKey.GetHashCode()).With(RowKey.GetHashCode()));
 }