コード例 #1
0
ファイル: MetadataResponse.cs プロジェクト: ligu/KafkaClient
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (int)ErrorCode;
         hashCode = (hashCode * 397) ^ (TopicName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (IsInternal?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Partitions?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
コード例 #2
0
 /// <summary>
 /// Gets the hash code for this <see cref="DragDropInfo"/> object.
 /// </summary>
 /// <returns>The hash code.</returns>
 public override int GetHashCode()
 {
     return(Location.GetHashCode() ^ KeyStates.GetHashCode() ^ Data.GetHashCode() ^
            IsInternal.GetHashCode() ^ Source.GetHashCode() ^
            AllowedEffects.GetHashCode() ^ VirtualBufferPosition.GetHashCode());
 }