From 791ec4e48b79a1eba2f788b95c9a86e163cd41df Mon Sep 17 00:00:00 2001 From: Eirik Tsarpalis Date: Tue, 23 Nov 2021 09:56:07 +0000 Subject: [PATCH] Incorporate changes from #61608 --- .../src/System/Text/Json/Writer/JsonWriterOptions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Text.Json/src/System/Text/Json/Writer/JsonWriterOptions.cs b/src/libraries/System.Text.Json/src/System/Text/Json/Writer/JsonWriterOptions.cs index e71668b854323..2d89a261e3353 100644 --- a/src/libraries/System.Text.Json/src/System/Text/Json/Writer/JsonWriterOptions.cs +++ b/src/libraries/System.Text.Json/src/System/Text/Json/Writer/JsonWriterOptions.cs @@ -58,7 +58,9 @@ public int MaxDepth set { if (value < 0) - throw ThrowHelper.GetArgumentOutOfRangeException_MaxDepthMustBePositive(nameof(value)); + { + ThrowHelper.ThrowArgumentOutOfRangeException_MaxDepthMustBePositive(nameof(value)); + } _maxDepth = value; }