From 7daa023358357682701132edfa62f2b6a765ebfc Mon Sep 17 00:00:00 2001 From: Chris Pulman Date: Tue, 5 Nov 2024 08:51:42 +0000 Subject: [PATCH] Supress CA1065 --- src/ReactiveUI.SourceGenerators/Core/Helpers/HashCode.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ReactiveUI.SourceGenerators/Core/Helpers/HashCode.cs b/src/ReactiveUI.SourceGenerators/Core/Helpers/HashCode.cs index 841c80d..7bfa54c 100644 --- a/src/ReactiveUI.SourceGenerators/Core/Helpers/HashCode.cs +++ b/src/ReactiveUI.SourceGenerators/Core/Helpers/HashCode.cs @@ -73,7 +73,7 @@ public readonly int ToHashCode() return (int)hash; } - +#pragma warning disable CA1065 /// [Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes. Use ToHashCode to retrieve the computed hash code.", error: true)] [EditorBrowsable(EditorBrowsableState.Never)] @@ -83,6 +83,7 @@ public readonly int ToHashCode() [Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes.", error: true)] [EditorBrowsable(EditorBrowsableState.Never)] public override readonly bool Equals(object? obj) => throw new NotSupportedException(); +#pragma warning restore CA1065 /// /// Rotates the specified value left by the specified number of bits.