150 references to String
Aspire.Dashboard (1)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
213
case JsonTokenType.
String
:
Microsoft.AspNetCore.Grpc.JsonTranscoding (8)
Internal\Json\DurationConverter.cs (1)
20
if (reader.TokenType != JsonTokenType.
String
)
Internal\Json\EnumConverter.cs (1)
23
case JsonTokenType.
String
:
Internal\Json\FieldMaskConverter.cs (1)
24
if (reader.TokenType != JsonTokenType.
String
)
Internal\Json\Int64Converter.cs (1)
18
if (reader.TokenType == JsonTokenType.
String
)
Internal\Json\NullValueConverter.cs (1)
19
case JsonTokenType.
String
:
Internal\Json\TimestampConverter.cs (1)
20
if (reader.TokenType != JsonTokenType.
String
)
Internal\Json\UInt64Converter.cs (1)
19
if (reader.TokenType == JsonTokenType.
String
)
Internal\Json\ValueConverter.cs (1)
41
case JsonTokenType.
String
:
Microsoft.AspNetCore.Http.Connections.Common (3)
NegotiateProtocol.cs (1)
298
case JsonTokenType.
String
:
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (2)
76
if (reader.TokenType != JsonTokenType.
String
)
78
throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.
String
}.");
Microsoft.AspNetCore.OpenApi (1)
Schemas\OpenApiJsonSchema.Helpers.cs (1)
129
if (reader.TokenType == JsonTokenType.
String
)
Microsoft.AspNetCore.SignalR.Common (2)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (2)
76
if (reader.TokenType != JsonTokenType.
String
)
78
throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.
String
}.");
Microsoft.AspNetCore.SignalR.Protocols.Json (6)
Protocol\JsonHubProtocol.cs (4)
197
if (reader.TokenType != JsonTokenType.
String
)
199
throw new InvalidDataException($"Expected '{TargetPropertyName}' to be of type {JsonTokenType.
String
}.");
499
if (reader.TokenType != JsonTokenType.
String
)
501
throw new InvalidDataException($"Expected header '{propertyName}' to be of type {JsonTokenType.
String
}.");
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (2)
76
if (reader.TokenType != JsonTokenType.
String
)
78
throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.
String
}.");
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (2)
76
if (reader.TokenType != JsonTokenType.
String
)
78
throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.
String
}.");
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Protocol\Converters\FormattingOptionsConverter.cs (1)
105
JsonTokenType.
String
=> reader.GetString(),
Protocol\Converters\NaturalObjectConverter.cs (1)
54
case JsonTokenType.
String
:
Protocol\Converters\StringEnumConverter.cs (1)
40
if (reader.TokenType == JsonTokenType.
String
)
Protocol\Converters\SumConverter.cs (2)
108
JsonTokenType.
String
or
297
case JsonTokenType.
String
:
Protocol\Converters\TextDocumentSyncConverter.cs (1)
31
else if (reader.TokenType == JsonTokenType.
String
)
Protocol\Internal\Converters\ObjectContentConverter.cs (1)
68
else if (reader.TokenType == JsonTokenType.
String
)
Microsoft.Extensions.DependencyModel (3)
Utf8JsonReaderExtensions.cs (3)
28
if (reader.TokenType == JsonTokenType.
String
)
76
while (reader.Read() && reader.TokenType == JsonTokenType.
String
)
97
if (reader.TokenType != JsonTokenType.
String
)
Microsoft.JSInterop (1)
Infrastructure\ByteArrayJsonConverter.cs (1)
26
if (reader.TokenType == JsonTokenType.
String
&& reader.TryGetBytesFromBase64(out var bytes))
Microsoft.ML.SearchSpace (1)
Converter\ParameterConverter.cs (1)
22
case JsonTokenType.
String
:
System.Text.Json (115)
src\libraries\System.Text.Json\Common\JsonNumberHandling.cs (2)
21
/// Numbers can be read from <see cref="JsonTokenType.
String
"/> tokens.
37
/// The "NaN", "Infinity", and "-Infinity" <see cref="JsonTokenType.
String
"/> tokens can be read as
System\Text\Json\Document\JsonDocument.cs (12)
236
if (includeQuotes && row.TokenType == JsonTokenType.
String
)
271
if (row.TokenType == JsonTokenType.
String
)
350
isPropertyName ? JsonTokenType.PropertyName : JsonTokenType.
String
,
404
CheckExpectedType(JsonTokenType.
String
, row.TokenType);
667
CheckExpectedType(JsonTokenType.
String
, row.TokenType);
702
CheckExpectedType(JsonTokenType.
String
, row.TokenType);
737
CheckExpectedType(JsonTokenType.
String
, row.TokenType);
814
case JsonTokenType.
String
:
845
case JsonTokenType.
String
:
883
Debug.Assert(row.TokenType == JsonTokenType.
String
|| row.TokenType == JsonTokenType.PropertyName);
1068
Debug.Assert(tokenType >= JsonTokenType.
String
&& tokenType <= JsonTokenType.Null);
1077
if (tokenType == JsonTokenType.
String
)
System\Text\Json\Document\JsonDocument.MetadataDb.cs (1)
388
if (start.TokenType == JsonTokenType.
String
)
System\Text\Json\Document\JsonDocument.Parse.cs (2)
550
case JsonTokenType.
String
:
737
if (tokenType == JsonTokenType.
String
|| tokenType == JsonTokenType.Number)
System\Text\Json\Document\JsonElement.cs (2)
386
return _parent.GetString(_idx, JsonTokenType.
String
);
1671
case JsonTokenType.
String
:
System\Text\Json\JsonHelpers.cs (1)
23
Debug.Assert(reader.TokenType is JsonTokenType.
String
or JsonTokenType.PropertyName);
System\Text\Json\Reader\JsonReaderHelper.cs (3)
59
case JsonTokenType.
String
:
76
(tokenType - JsonTokenType.
String
) <= (JsonTokenType.Null - JsonTokenType.
String
);
System\Text\Json\Reader\Utf8JsonReader.cs (8)
440
/// (i.e. other than <see cref="JsonTokenType.
String
"/> or <see cref="JsonTokenType.PropertyName"/>).
470
/// (i.e. other than <see cref="JsonTokenType.
String
"/> or <see cref="JsonTokenType.PropertyName"/>).
511
/// (i.e. other than <see cref="JsonTokenType.
String
"/> or <see cref="JsonTokenType.PropertyName"/>).
692
return tokenType == JsonTokenType.PropertyName || tokenType == JsonTokenType.
String
;
1301
_tokenType = JsonTokenType.
String
;
1400
_tokenType = JsonTokenType.
String
;
2575
JsonTokenType.
String
=> nameof(JsonTokenType.
String
),
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (3)
767
_tokenType = JsonTokenType.
String
;
946
_tokenType = JsonTokenType.
String
;
1097
_tokenType = JsonTokenType.
String
;
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (21)
22
/// (i.e. other than <see cref="JsonTokenType.
String
"/>, <see cref="JsonTokenType.PropertyName"/> or
34
if (TokenType != JsonTokenType.
String
&& TokenType != JsonTokenType.PropertyName)
64
/// (i.e. other than <see cref="JsonTokenType.
String
"/> or <see cref="JsonTokenType.PropertyName"/>.
71
if (_tokenType is not (JsonTokenType.
String
or JsonTokenType.PropertyName))
81
Debug.Assert(_tokenType is JsonTokenType.
String
or JsonTokenType.PropertyName or JsonTokenType.Number);
128
/// (i.e. other than <see cref="JsonTokenType.
String
"/> or <see cref="JsonTokenType.PropertyName"/>.
135
if (_tokenType is not (JsonTokenType.
String
or JsonTokenType.PropertyName))
145
Debug.Assert(_tokenType is JsonTokenType.
String
or JsonTokenType.PropertyName or JsonTokenType.Number);
197
Debug.Assert(_tokenType is JsonTokenType.
String
or JsonTokenType.PropertyName);
279
/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.
String
"/>.
725
/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.
String
"/>.
758
/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.
String
"/>.
791
/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.
String
"/>.
824
/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.
String
"/>.
829
if (TokenType != JsonTokenType.
String
)
1231
/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.
String
"/>.
1236
if (TokenType != JsonTokenType.
String
)
1296
/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.
String
"/>.
1301
if (TokenType != JsonTokenType.
String
)
1362
/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.
String
"/>.
1367
if (TokenType != JsonTokenType.
String
)
System\Text\Json\Serialization\Converters\Node\JsonNodeConverter.cs (1)
43
case JsonTokenType.
String
:
System\Text\Json\Serialization\Converters\Value\ByteConverter.cs (1)
40
if (reader.TokenType == JsonTokenType.
String
&& (JsonNumberHandling.AllowReadingFromString & handling) != 0)
System\Text\Json\Serialization\Converters\Value\CharConverter.cs (1)
15
if (reader.TokenType is not (JsonTokenType.
String
or JsonTokenType.PropertyName))
System\Text\Json\Serialization\Converters\Value\DateOnlyConverter.cs (1)
17
if (reader.TokenType != JsonTokenType.
String
)
System\Text\Json\Serialization\Converters\Value\DecimalConverter.cs (1)
39
if (reader.TokenType == JsonTokenType.
String
&&
System\Text\Json\Serialization\Converters\Value\DoubleConverter.cs (1)
40
if (reader.TokenType == JsonTokenType.
String
)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (2)
106
case JsonTokenType.
String
when (_converterOptions & EnumConverterOptions.AllowStrings) != 0:
238
Debug.Assert(reader.TokenType is JsonTokenType.
String
or JsonTokenType.PropertyName);
System\Text\Json\Serialization\Converters\Value\HalfConverter.cs (1)
87
if (reader.TokenType == JsonTokenType.
String
)
System\Text\Json\Serialization\Converters\Value\Int128Converter.cs (1)
81
if (reader.TokenType == JsonTokenType.
String
&&
System\Text\Json\Serialization\Converters\Value\Int16Converter.cs (1)
41
if (reader.TokenType == JsonTokenType.
String
&&
System\Text\Json\Serialization\Converters\Value\Int32Converter.cs (1)
41
if (reader.TokenType == JsonTokenType.
String
&&
System\Text\Json\Serialization\Converters\Value\Int64Converter.cs (1)
40
if (reader.TokenType == JsonTokenType.
String
&&
System\Text\Json\Serialization\Converters\Value\SByteConverter.cs (1)
40
if (reader.TokenType == JsonTokenType.
String
&&
System\Text\Json\Serialization\Converters\Value\SingleConverter.cs (1)
41
if (reader.TokenType == JsonTokenType.
String
)
System\Text\Json\Serialization\Converters\Value\TimeOnlyConverter.cs (2)
19
if (reader.TokenType != JsonTokenType.
String
)
35
Debug.Assert(reader.TokenType is JsonTokenType.
String
or JsonTokenType.PropertyName);
System\Text\Json\Serialization\Converters\Value\TimeSpanConverter.cs (2)
19
if (reader.TokenType != JsonTokenType.
String
)
35
Debug.Assert(reader.TokenType is JsonTokenType.
String
or JsonTokenType.PropertyName);
System\Text\Json\Serialization\Converters\Value\UInt128Converter.cs (1)
81
if (reader.TokenType == JsonTokenType.
String
&&
System\Text\Json\Serialization\Converters\Value\UInt16Converter.cs (1)
41
if (reader.TokenType == JsonTokenType.
String
&&
System\Text\Json\Serialization\Converters\Value\UInt32Converter.cs (1)
41
if (reader.TokenType == JsonTokenType.
String
&&
System\Text\Json\Serialization\Converters\Value\UInt64Converter.cs (1)
40
if (reader.TokenType == JsonTokenType.
String
&&
System\Text\Json\Serialization\Converters\Value\VersionConverter.cs (2)
27
if (reader.TokenType != JsonTokenType.
String
)
37
Debug.Assert(reader.TokenType is JsonTokenType.PropertyName or JsonTokenType.
String
);
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (3)
214
if (reader.TokenType != JsonTokenType.
String
)
228
if (reader.TokenType != JsonTokenType.
String
)
246
case JsonTokenType.
String
:
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (1)
409
case JsonTokenType.
String
:
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (3)
28
_tokenType = JsonTokenType.
String
;
78
_tokenType = JsonTokenType.
String
;
102
_tokenType = JsonTokenType.
String
;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (3)
32
_tokenType = JsonTokenType.
String
;
84
_tokenType = JsonTokenType.
String
;
109
_tokenType = JsonTokenType.
String
;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (3)
31
_tokenType = JsonTokenType.
String
;
83
_tokenType = JsonTokenType.
String
;
108
_tokenType = JsonTokenType.
String
;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (3)
31
_tokenType = JsonTokenType.
String
;
83
_tokenType = JsonTokenType.
String
;
108
_tokenType = JsonTokenType.
String
;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (9)
436
_tokenType = JsonTokenType.
String
;
526
_tokenType = JsonTokenType.
String
;
550
_tokenType = JsonTokenType.
String
;
622
_tokenType = JsonTokenType.
String
;
672
_tokenType = JsonTokenType.
String
;
712
_tokenType = JsonTokenType.
String
;
762
_tokenType = JsonTokenType.
String
;
802
_tokenType = JsonTokenType.
String
;
874
_tokenType = JsonTokenType.
String
;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Bytes.cs (1)
29
_tokenType = JsonTokenType.
String
;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTime.cs (1)
39
_tokenType = JsonTokenType.
String
;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.DateTimeOffset.cs (1)
40
_tokenType = JsonTokenType.
String
;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Guid.cs (1)
39
_tokenType = JsonTokenType.
String
;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (2)
161
_tokenType = JsonTokenType.
String
;
252
_tokenType = JsonTokenType.
String
;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (4)
26
_tokenType = JsonTokenType.
String
;
79
_tokenType = JsonTokenType.
String
;
226
_tokenType = JsonTokenType.
String
;
364
_tokenType = JsonTokenType.
String
;