Skip to content

Commit eb164cb

Browse files
authored
Supress CA1065 (#109)
1 parent 83b8526 commit eb164cb

File tree

1 file changed

+2
-1
lines changed
  • src/ReactiveUI.SourceGenerators/Core/Helpers

1 file changed

+2
-1
lines changed

src/ReactiveUI.SourceGenerators/Core/Helpers/HashCode.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public readonly int ToHashCode()
7373

7474
return (int)hash;
7575
}
76-
76+
#pragma warning disable CA1065
7777
/// <inheritdoc/>
7878
[Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes. Use ToHashCode to retrieve the computed hash code.", error: true)]
7979
[EditorBrowsable(EditorBrowsableState.Never)]
@@ -83,6 +83,7 @@ public readonly int ToHashCode()
8383
[Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes.", error: true)]
8484
[EditorBrowsable(EditorBrowsableState.Never)]
8585
public override readonly bool Equals(object? obj) => throw new NotSupportedException();
86+
#pragma warning restore CA1065
8687

8788
/// <summary>
8889
/// Rotates the specified value left by the specified number of bits.

0 commit comments

Comments
 (0)