Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2022-11-10 12:13:35 +0300
committerGitHub <noreply@github.com>2022-11-10 12:13:35 +0300
commitb00a4eec94bb09f9c72d55162f292cc5fabf9ce5 (patch)
tree4c152ec8fff03e3e87c1684dbd4adaba4db27560
parent39e9c6bcccaad4084311d2b11ccf8b88c734652a (diff)
Fix expensive typo in JsonNode (#78130)
-rw-r--r--src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.To.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.To.cs b/src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.To.cs
index ed716927856..c087b5f4d44 100644
--- a/src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.To.cs
+++ b/src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.To.cs
@@ -6,7 +6,7 @@ namespace System.Text.Json.Nodes
public abstract partial class JsonNode
{
// linker-safe default JsonSerializerOptions instance used by JsonNode methods.
- private protected readonly JsonSerializerOptions s_defaultOptions = new();
+ private protected static readonly JsonSerializerOptions s_defaultOptions = new();
/// <summary>
/// Converts the current instance to string in JSON format.