=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -19,6 +19,7 @@ public sealed class EquatableDictionary<TKey, TValue>
|
||||
/// </summary>
|
||||
/// <param name="other">The dictionary to compare against this instance.</param>
|
||||
/// <returns><c>true</c> if both dictionaries contain the same keys with equal values; otherwise, <c>false</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=1b5e4bb body=d98d679 -->
|
||||
public bool Equals(ComparableDictionary<TKey, TValue>? other)
|
||||
{
|
||||
if (other is null) return false;
|
||||
@@ -38,6 +39,7 @@ public sealed class EquatableDictionary<TKey, TValue>
|
||||
/// </summary>
|
||||
/// <param name="other">The object to compare with the current instance.</param>
|
||||
/// <returns><c>true</c> if <paramref name="other"/> is a <see cref="ComparableDictionary{TKey, TValue}"/> and is equal to the current instance; otherwise, <c>false</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=a2c1185 body=4da7df8 -->
|
||||
public override bool Equals(object? other)
|
||||
{
|
||||
return Equals(other as ComparableDictionary<TKey, TValue>);
|
||||
@@ -48,6 +50,7 @@ public sealed class EquatableDictionary<TKey, TValue>
|
||||
/// Each pair contributes a hash derived from its key and value, and the per-pair hashes are combined using XOR.
|
||||
/// </summary>
|
||||
/// <returns>An integer hash code that represents the contents of the collection.</returns>
|
||||
/// <!-- aidoc:v1 sig=eb26c4a body=9b55f08 -->
|
||||
public override int GetHashCode()
|
||||
{
|
||||
var hash = 0;
|
||||
|
||||
Reference in New Issue
Block a user