File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,16 @@ internal sealed record ValidationInfo(
22
22
string TypeName ,
23
23
ImmutableArray < string > PropertyNames )
24
24
{
25
+ /// <inheritdoc/>
26
+ public bool Equals ( ValidationInfo ? obj ) => Comparer . Default . Equals ( this , obj ) ;
27
+
28
+ /// <inheritdoc/>
29
+ public override int GetHashCode ( ) => Comparer . Default . GetHashCode ( this ) ;
30
+
25
31
/// <summary>
26
32
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="ValidationInfo"/>.
27
33
/// </summary>
28
- public sealed class Comparer : Comparer < ValidationInfo , Comparer >
34
+ private sealed class Comparer : Comparer < ValidationInfo , Comparer >
29
35
{
30
36
/// <inheritdoc/>
31
37
protected override void AddToHashCode ( ref HashCode hashCode , ValidationInfo obj )
You can’t perform that action at this time.
0 commit comments