1 write to _options
System.Text.Json (1)
System\Text\Json\Writer\Utf8JsonWriter.cs (1)
250
_options
= options;
256 references to _options
System.Text.Json (256)
System\Text\Json\Writer\Utf8JsonWriter.cs (29)
106
public JsonWriterOptions Options =>
_options
;
251
_indentByte = (byte)
_options
.IndentCharacter;
257
if (
_options
.MaxDepth == 0)
259
_options
.MaxDepth = JsonWriterOptions.DefaultMaxDepth; // If max depth is not set, revert to the default depth.
571
if (CurrentDepth >=
_options
.MaxDepth)
576
if (
_options
.IndentedOrNotSkipValidation)
606
Debug.Assert(
_options
.Indented || !
_options
.SkipValidation);
608
if (
_options
.Indented)
610
if (!
_options
.SkipValidation)
619
Debug.Assert(!
_options
.SkipValidation);
665
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
784
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
802
if (
_options
.Indented)
825
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
933
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
951
if (
_options
.Indented)
974
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
1010
if (
_options
.IndentedOrNotSkipValidation)
1040
Debug.Assert(
_options
.Indented || !
_options
.SkipValidation);
1042
if (
_options
.Indented)
1044
if (!
_options
.SkipValidation)
1052
Debug.Assert(!
_options
.SkipValidation);
1105
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
1106
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.None);
1234
=> ThrowHelper.ThrowInvalidOperationException(resource, currentDepth: default, maxDepth:
_options
.MaxDepth, token: default, _tokenType);
1239
=> ThrowHelper.ThrowInvalidOperationException(ExceptionResource.MismatchedObjectArray, currentDepth: default, maxDepth:
_options
.MaxDepth, token, _tokenType);
1244
=> ThrowHelper.ThrowInvalidOperationException(ExceptionResource.DepthTooLarge, _currentDepth,
_options
.MaxDepth, token: default, tokenType: default);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (10)
104
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
120
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
147
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
170
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
183
if (
_options
.Indented)
196
if (
_options
.Indented)
280
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
302
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
330
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
352
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (10)
111
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
127
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
154
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
177
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
190
if (
_options
.Indented)
203
if (
_options
.Indented)
284
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
304
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
333
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
352
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (10)
110
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
126
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
153
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
176
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
189
if (
_options
.Indented)
202
if (
_options
.Indented)
283
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
303
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
332
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
351
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (10)
110
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
126
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
153
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
176
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
189
if (
_options
.Indented)
202
if (
_options
.Indented)
277
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
297
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
323
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
342
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (10)
114
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
130
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
157
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
180
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
193
if (
_options
.Indented)
206
if (
_options
.Indented)
281
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
301
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
327
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
346
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (10)
114
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
130
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
157
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
180
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
193
if (
_options
.Indented)
206
if (
_options
.Indented)
281
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
301
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
327
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
346
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.FormattedNumber.cs (6)
84
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
100
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
127
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
150
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
163
if (
_options
.Indented)
176
if (
_options
.Indented)
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (10)
110
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
126
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
153
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
176
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
189
if (
_options
.Indented)
202
if (
_options
.Indented)
285
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
305
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
335
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
354
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (12)
17
if (propertyName.Length > JsonConstants.MaxCharacterTokenSize || CurrentDepth >=
_options
.MaxDepth)
18
ThrowHelper.ThrowInvalidOperationOrArgumentException(propertyName, _currentDepth,
_options
.MaxDepth);
24
if (utf8PropertyName.Length > JsonConstants.MaxUnescapedTokenSize || CurrentDepth >=
_options
.MaxDepth)
25
ThrowHelper.ThrowInvalidOperationOrArgumentException(utf8PropertyName, _currentDepth,
_options
.MaxDepth);
31
if (CurrentDepth >=
_options
.MaxDepth)
32
ThrowHelper.ThrowInvalidOperationException(_currentDepth,
_options
.MaxDepth);
38
if (!
_options
.SkipValidation)
51
if (!
_options
.SkipValidation)
106
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
125
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
178
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
198
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (11)
28
if (
_options
.Indented)
229
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
245
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
272
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
295
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
308
if (
_options
.Indented)
321
if (
_options
.Indented)
424
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
445
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
470
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
490
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (10)
183
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
199
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
226
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
249
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
262
if (
_options
.Indented)
275
if (
_options
.Indented)
350
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
370
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
396
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
415
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (46)
24
if (
_options
.Indented)
93
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
131
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
146
if (
_options
.Indented)
187
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
242
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
290
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
305
if (
_options
.Indented)
375
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
395
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
599
int valueIdx = JsonWriterHelper.NeedsEscaping(value,
_options
.Encoder);
686
int valueIdx = JsonWriterHelper.NeedsEscaping(utf8Value,
_options
.Encoder);
773
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
845
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
907
JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndex,
_options
.Encoder, out int written);
930
JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndex,
_options
.Encoder, out int written);
953
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndex,
_options
.Encoder, out int written);
976
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndex,
_options
.Encoder, out int written);
988
int valueIdx = JsonWriterHelper.NeedsEscaping(value,
_options
.Encoder);
989
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
1007
int valueIdx = JsonWriterHelper.NeedsEscaping(utf8Value,
_options
.Encoder);
1008
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
1026
int valueIdx = JsonWriterHelper.NeedsEscaping(utf8Value,
_options
.Encoder);
1027
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
1045
int valueIdx = JsonWriterHelper.NeedsEscaping(value,
_options
.Encoder);
1046
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
1085
JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndexVal,
_options
.Encoder, out int written);
1105
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
1145
JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal,
_options
.Encoder, out int written);
1165
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
1205
JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal,
_options
.Encoder, out int written);
1225
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
1265
JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndexVal,
_options
.Encoder, out int written);
1285
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
1305
if (
_options
.Indented)
1318
if (
_options
.Indented)
1331
if (
_options
.Indented)
1344
if (
_options
.Indented)
1501
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
1522
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
1551
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
1571
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
1602
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
1623
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
1653
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
1674
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (10)
192
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
208
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
235
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
258
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
271
if (
_options
.Indented)
284
if (
_options
.Indented)
359
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
379
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
405
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
424
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Bytes.cs (3)
34
if (!
_options
.SkipValidation)
39
if (
_options
.Indented)
91
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (5)
61
if (!
_options
.SkipValidation)
68
if (
_options
.Indented)
112
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
183
if (
_options
.Indented)
219
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTime.cs (3)
24
if (!
_options
.SkipValidation)
29
if (
_options
.Indented)
69
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTimeOffset.cs (3)
25
if (!
_options
.SkipValidation)
30
if (
_options
.Indented)
70
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Decimal.cs (3)
24
if (!
_options
.SkipValidation)
29
if (
_options
.Indented)
66
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs (3)
28
if (!
_options
.SkipValidation)
33
if (
_options
.Indented)
70
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (3)
28
if (!
_options
.SkipValidation)
33
if (
_options
.Indented)
70
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs (3)
29
if (!
_options
.SkipValidation)
34
if (
_options
.Indented)
70
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs (3)
24
if (!
_options
.SkipValidation)
29
if (
_options
.Indented)
70
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Helpers.cs (1)
54
Debug.Assert(!
_options
.SkipValidation);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Literal.cs (3)
49
if (!
_options
.SkipValidation)
54
if (
_options
.Indented)
89
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (4)
36
if (!
_options
.SkipValidation)
69
if (!
_options
.SkipValidation)
100
if (!
_options
.SkipValidation)
136
if (!
_options
.SkipValidation)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.SignedNumber.cs (3)
37
if (!
_options
.SkipValidation)
42
if (
_options
.Indented)
79
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (10)
84
int valueIdx = JsonWriterHelper.NeedsEscaping(value,
_options
.Encoder);
100
if (!
_options
.SkipValidation)
105
if (
_options
.Indented)
146
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
196
JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndexVal,
_options
.Encoder, out int written);
231
int valueIdx = JsonWriterHelper.NeedsEscaping(utf8Value,
_options
.Encoder);
247
if (!
_options
.SkipValidation)
252
if (
_options
.Indented)
293
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
343
JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal,
_options
.Encoder, out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (9)
31
if (!
_options
.SkipValidation)
122
int escapeIdx = JsonWriterHelper.NeedsEscaping(value,
_options
.Encoder);
146
JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndexVal,
_options
.Encoder, out int consumed, out int written, isFinalSegment);
199
if (!
_options
.SkipValidation)
291
int escapeIdx = JsonWriterHelper.NeedsEscaping(utf8Value,
_options
.Encoder);
312
JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal,
_options
.Encoder, out int consumed, out int written, isFinalSegment);
366
if (!
_options
.SkipValidation)
463
if (
_options
.Indented)
476
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.UnsignedNumber.cs (3)
39
if (!
_options
.SkipValidation)
44
if (
_options
.Indented)
81
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);