コード例 #1
0
ファイル: ReservedValue.cs プロジェクト: ckurt/Its.Cqrs
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = 0;
         hashCode = (hashCode * 397) ^ (OwnerToken?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Value?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ConfirmationToken?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Scope?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Expiration?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
コード例 #2
0
ファイル: ReservedValue.cs プロジェクト: yuanfeiw/Its.Cqrs
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = 0;
         hashCode = (hashCode * 397) ^ (OwnerToken != null ? OwnerToken.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Value != null ? Value.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ConfirmationToken != null ? ConfirmationToken.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Scope != null ? Scope.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Expiration.HasValue ? Expiration.GetHashCode() : 0);
         return(hashCode);
     }
 }