Skip to content

Commit 9fb0745

Browse files
Fix expensive typo in JsonNode (#78147)
Co-authored-by: Stephen Toub <[email protected]>
1 parent 9e7c283 commit 9fb0745

File tree

1 file changed

+1
-1
lines changed
  • src/libraries/System.Text.Json/src/System/Text/Json/Nodes

1 file changed

+1
-1
lines changed

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.To.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace System.Text.Json.Nodes
66
public abstract partial class JsonNode
77
{
88
// linker-safe default JsonSerializerOptions instance used by JsonNode methods.
9-
private protected readonly JsonSerializerOptions s_defaultOptions = new();
9+
private protected static readonly JsonSerializerOptions s_defaultOptions = new();
1010

1111
/// <summary>
1212
/// Converts the current instance to string in JSON format.

0 commit comments

Comments
 (0)