From b00a4eec94bb09f9c72d55162f292cc5fabf9ce5 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Thu, 10 Nov 2022 04:13:35 -0500 Subject: [PATCH] Fix expensive typo in JsonNode (#78130) --- .../System.Text.Json/src/System/Text/Json/Nodes/JsonNode.To.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ed716927856a8..c087b5f4d44ce 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(); /// /// Converts the current instance to string in JSON format.