From 3a0b8b6dff2c7cd3b0674ddb530faeb1eaf125d1 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 9 Nov 2022 15:26:36 -0500 Subject: [PATCH] Fix expensive typo in JsonNode --- .../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 ed716927856a87..c087b5f4d44ce6 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.