We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dd397d commit 15f1045Copy full SHA for 15f1045
src/GraphQL.Primitives/GraphQLRequest.cs
@@ -84,16 +84,7 @@ public virtual bool Equals(GraphQLRequest? other)
84
/// <summary>
85
/// <inheritdoc cref="object.GetHashCode"/>
86
/// </summary>
87
- public override int GetHashCode()
88
- {
89
- unchecked
90
91
- var hashCode = Query?.GetHashCode() ?? 0;
92
- hashCode = (hashCode * 397) ^ OperationName?.GetHashCode() ?? 0;
93
- hashCode = (hashCode * 397) ^ Variables?.GetHashCode() ?? 0;
94
- return hashCode;
95
- }
96
+ public override int GetHashCode() => (Query, OperationName, Variables).GetHashCode();
97
98
99
/// Tests whether two specified <see cref="GraphQLRequest"/> instances are equivalent
0 commit comments