1 write to _options
System.Text.Json (1)
System\Text\Json\Writer\Utf8JsonWriter.cs (1)
150
_options
= options;
253 references to _options
System.Text.Json (253)
System\Text\Json\Writer\Utf8JsonWriter.cs (32)
85
public JsonWriterOptions Options =>
_options
;
151
_indentByte = (byte)
_options
.IndentCharacter;
157
if (
_options
.MaxDepth == 0)
159
_options
.MaxDepth = JsonWriterOptions.DefaultMaxDepth; // If max depth is not set, revert to the default depth.
482
if (CurrentDepth >=
_options
.MaxDepth)
483
ThrowHelper.ThrowInvalidOperationException(ExceptionResource.DepthTooLarge, _currentDepth,
_options
.MaxDepth, token: default, tokenType: default);
485
if (
_options
.IndentedOrNotSkipValidation)
515
Debug.Assert(
_options
.Indented || !
_options
.SkipValidation);
517
if (
_options
.Indented)
519
if (!
_options
.SkipValidation)
528
Debug.Assert(!
_options
.SkipValidation);
542
ThrowHelper.ThrowInvalidOperationException(ExceptionResource.CannotStartObjectArrayWithoutProperty, currentDepth: default, maxDepth:
_options
.MaxDepth, token: default, _tokenType);
553
ThrowHelper.ThrowInvalidOperationException(ExceptionResource.CannotStartObjectArrayAfterPrimitiveOrClose, currentDepth: default, maxDepth:
_options
.MaxDepth, token: default, _tokenType);
561
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
680
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
698
if (
_options
.Indented)
721
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
835
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
853
if (
_options
.Indented)
876
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
912
if (
_options
.IndentedOrNotSkipValidation)
942
Debug.Assert(
_options
.Indented || !
_options
.SkipValidation);
944
if (
_options
.Indented)
946
if (!
_options
.SkipValidation)
954
Debug.Assert(!
_options
.SkipValidation);
963
ThrowHelper.ThrowInvalidOperationException(ExceptionResource.MismatchedObjectArray, currentDepth: default, maxDepth:
_options
.MaxDepth, token, _tokenType);
970
ThrowHelper.ThrowInvalidOperationException(ExceptionResource.MismatchedObjectArray, currentDepth: default, maxDepth:
_options
.MaxDepth, token, _tokenType);
979
ThrowHelper.ThrowInvalidOperationException(ExceptionResource.MismatchedObjectArray, currentDepth: default, maxDepth:
_options
.MaxDepth, token, _tokenType);
1005
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
1006
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.None);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (10)
107
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
123
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
150
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
173
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
186
if (
_options
.Indented)
199
if (
_options
.Indented)
283
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
305
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
333
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
355
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.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)
287
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
307
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
336
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
355
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (10)
113
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
129
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
156
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
179
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
192
if (
_options
.Indented)
205
if (
_options
.Indented)
286
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
306
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.Decimal.cs (10)
113
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
129
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
156
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
179
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
192
if (
_options
.Indented)
205
if (
_options
.Indented)
280
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
300
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
326
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
345
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (10)
117
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
133
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
160
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
183
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
196
if (
_options
.Indented)
209
if (
_options
.Indented)
284
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
304
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
330
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
349
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (10)
117
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
133
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
160
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
183
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
196
if (
_options
.Indented)
209
if (
_options
.Indented)
284
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
304
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
330
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
349
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)
113
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
129
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
156
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
179
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
192
if (
_options
.Indented)
205
if (
_options
.Indented)
288
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
308
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
338
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
357
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (14)
16
if (propertyName.Length > JsonConstants.MaxCharacterTokenSize || CurrentDepth >=
_options
.MaxDepth)
17
ThrowHelper.ThrowInvalidOperationOrArgumentException(propertyName, _currentDepth,
_options
.MaxDepth);
23
if (utf8PropertyName.Length > JsonConstants.MaxUnescapedTokenSize || CurrentDepth >=
_options
.MaxDepth)
24
ThrowHelper.ThrowInvalidOperationOrArgumentException(utf8PropertyName, _currentDepth,
_options
.MaxDepth);
30
if (CurrentDepth >=
_options
.MaxDepth)
31
ThrowHelper.ThrowInvalidOperationException(_currentDepth,
_options
.MaxDepth);
37
if (!
_options
.SkipValidation)
42
ThrowHelper.ThrowInvalidOperationException(ExceptionResource.CannotWritePropertyWithinArray, currentDepth: default, maxDepth:
_options
.MaxDepth, token: default, _tokenType);
50
if (!
_options
.SkipValidation)
55
ThrowHelper.ThrowInvalidOperationException(ExceptionResource.CannotWritePropertyWithinArray, currentDepth: default, maxDepth:
_options
.MaxDepth, token: default, _tokenType);
92
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
111
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
164
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
184
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (11)
28
if (
_options
.Indented)
235
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
251
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
278
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
301
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
314
if (
_options
.Indented)
327
if (
_options
.Indented)
430
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
451
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
476
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
496
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (10)
189
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
205
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
232
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
255
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
268
if (
_options
.Indented)
281
if (
_options
.Indented)
356
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
376
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
402
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
421
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (46)
24
if (
_options
.Indented)
96
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
134
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
149
if (
_options
.Indented)
190
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
245
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
293
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
308
if (
_options
.Indented)
378
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
398
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
608
int valueIdx = JsonWriterHelper.NeedsEscaping(value,
_options
.Encoder);
698
int valueIdx = JsonWriterHelper.NeedsEscaping(utf8Value,
_options
.Encoder);
788
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
860
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
922
JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndex,
_options
.Encoder, out int written);
945
JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndex,
_options
.Encoder, out int written);
968
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndex,
_options
.Encoder, out int written);
991
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndex,
_options
.Encoder, out int written);
1003
int valueIdx = JsonWriterHelper.NeedsEscaping(value,
_options
.Encoder);
1004
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
1022
int valueIdx = JsonWriterHelper.NeedsEscaping(utf8Value,
_options
.Encoder);
1023
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
1041
int valueIdx = JsonWriterHelper.NeedsEscaping(utf8Value,
_options
.Encoder);
1042
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
1060
int valueIdx = JsonWriterHelper.NeedsEscaping(value,
_options
.Encoder);
1061
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
1100
JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndexVal,
_options
.Encoder, out int written);
1120
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
1160
JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal,
_options
.Encoder, out int written);
1180
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
1220
JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal,
_options
.Encoder, out int written);
1240
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
1280
JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndexVal,
_options
.Encoder, out int written);
1300
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
1320
if (
_options
.Indented)
1333
if (
_options
.Indented)
1346
if (
_options
.Indented)
1359
if (
_options
.Indented)
1516
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
1537
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
1566
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
1586
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
1617
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
1638
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
1668
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
1689
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (10)
198
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName,
_options
.Encoder);
214
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName,
_options
.Encoder);
241
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
264
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp,
_options
.Encoder, out int written);
277
if (
_options
.Indented)
290
if (
_options
.Indented)
365
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
385
Debug.Assert(
_options
.SkipValidation || _tokenType != JsonTokenType.PropertyName);
411
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
430
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 (4)
64
if (
_options
.Indented)
108
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);
179
if (
_options
.Indented)
215
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 (3)
15
Debug.Assert(!
_options
.SkipValidation);
22
ThrowHelper.ThrowInvalidOperationException(ExceptionResource.CannotWriteValueWithinObject, currentDepth: default, maxDepth:
_options
.MaxDepth, token: default, _tokenType);
32
ThrowHelper.ThrowInvalidOperationException(ExceptionResource.CannotWriteValueAfterPrimitiveOrClose, currentDepth: default, maxDepth:
_options
.MaxDepth, token: default, _tokenType);
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)
72
if (!
_options
.SkipValidation)
103
if (!
_options
.SkipValidation)
139
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.UnsignedNumber.cs (3)
39
if (!
_options
.SkipValidation)
44
if (
_options
.Indented)
81
Debug.Assert(indent <= _indentLength *
_options
.MaxDepth);