Add .NET 6 target (#2677)

This commit is contained in:
James Newton-King
2022-05-16 16:12:52 +08:00
committed by GitHub
parent e42c9e4824
commit bf2e2a78e8
80 changed files with 520 additions and 408 deletions
+7 -1
View File
@@ -353,7 +353,13 @@ namespace Newtonsoft.Json.Linq
internal override int GetDeepHashCode()
{
return _name.GetHashCode() ^ (Value?.GetDeepHashCode() ?? 0);
int hash;
#if HAVE_GETHASHCODE_STRING_COMPARISON
hash = _name.GetHashCode(StringComparison.Ordinal);
#else
hash = _name.GetHashCode();
#endif
return hash ^ (Value?.GetDeepHashCode() ?? 0);
}
/// <summary>