5 writes to Encoder
Microsoft.AspNetCore.Http.Connections.Common (1)
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (1)
29
Encoder
= JavaScriptEncoder.UnsafeRelaxedJsonEscaping
Microsoft.AspNetCore.SignalR.Common (1)
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (1)
29
Encoder
= JavaScriptEncoder.UnsafeRelaxedJsonEscaping
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (1)
29
Encoder
= JavaScriptEncoder.UnsafeRelaxedJsonEscaping
Microsoft.Extensions.DependencyModel (1)
DependencyContextWriter.cs (1)
25
var options = new JsonWriterOptions { Indented = true,
Encoder
= JavaScriptEncoder.UnsafeRelaxedJsonEscaping };
System.Text.Json (1)
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
1054
Encoder
= Encoder,
88 references to Encoder
System.Text.Json (88)
System\Text\Json\Writer\Utf8JsonWriter.cs (4)
804
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.
Encoder
);
845
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.
Encoder
, out int written);
959
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.
Encoder
);
1000
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.
Encoder
, out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (4)
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);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (4)
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);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (4)
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);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (4)
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);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (4)
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);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (4)
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);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.FormattedNumber.cs (4)
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);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (4)
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);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (4)
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);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (4)
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);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (28)
96
int propertyIdx = JsonWriterHelper.NeedsEscaping(propertyName, _options.
Encoder
);
134
JsonWriterHelper.EscapeString(propertyName, escapedPropertyName, firstEscapeIndexProp, _options.
Encoder
, out int written);
245
int propertyIdx = JsonWriterHelper.NeedsEscaping(utf8PropertyName, _options.
Encoder
);
293
JsonWriterHelper.EscapeString(utf8PropertyName, escapedPropertyName, firstEscapeIndexProp, _options.
Encoder
, out int written);
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);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (4)
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);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (4)
32
/// The <see cref="JsonWriterOptions.Indented"/> and <see cref="JsonWriterOptions.
Encoder
"/> values for the writer instance are not applied when using this method.
68
/// The <see cref="JsonWriterOptions.Indented"/> and <see cref="JsonWriterOptions.
Encoder
"/> values for the writer instance are not applied when using this method.
99
/// The <see cref="JsonWriterOptions.Indented"/> and <see cref="JsonWriterOptions.
Encoder
"/> values for the writer instance are not applied when using this method.
135
/// The <see cref="JsonWriterOptions.Indented"/> and <see cref="JsonWriterOptions.
Encoder
"/> values for the writer instance are not applied when using this method.
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (4)
84
int valueIdx = JsonWriterHelper.NeedsEscaping(value, _options.
Encoder
);
196
JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndexVal, _options.
Encoder
, out int written);
231
int valueIdx = JsonWriterHelper.NeedsEscaping(utf8Value, _options.
Encoder
);
343
JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal, _options.
Encoder
, out int written);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (4)
133
int escapeIdx = JsonWriterHelper.NeedsEscaping(value, _options.
Encoder
);
157
JsonWriterHelper.EscapeString(value, escapedValue, firstEscapeIndexVal, _options.
Encoder
, out int consumed, out int written, isFinalSegment);
310
int escapeIdx = JsonWriterHelper.NeedsEscaping(utf8Value, _options.
Encoder
);
331
JsonWriterHelper.EscapeString(utf8Value, escapedValue, firstEscapeIndexVal, _options.
Encoder
, out int consumed, out int written, isFinalSegment);