Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MaxDepth

int System.Text.Json.JsonSerializerOptions.MaxDepth
getset

Definition at line 239 of file JsonSerializerOptions.cs.

240 {
241 get
242 {
243 return _maxDepth;
244 }
245 set
246 {
248 if (value < 0)
249 {
250 throw ThrowHelper.GetArgumentOutOfRangeException_MaxDepthMustBePositive("value");
251 }
253 EffectiveMaxDepth = ((value == 0) ? 64 : value);
254 }
255 }

Referenced by System.Text.Json.JsonSerializerOptions.GetDocumentOptions(), and System.Text.Json.JsonSerializerOptions.GetReaderOptions().