123 references to Number
Aspire.Dashboard (1)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
216case JsonTokenType.Number:
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Internal\Json\EnumConverter.cs (1)
38case JsonTokenType.Number:
Internal\Json\NullValueConverter.cs (1)
28case JsonTokenType.Number:
Internal\Json\ValueConverter.cs (1)
44case JsonTokenType.Number:
Microsoft.AspNetCore.Http.Connections.Common (4)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (4)
93if (reader.TokenType != JsonTokenType.Number) 95throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}."); 110if (reader.TokenType != JsonTokenType.Number) 112throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}.");
Microsoft.AspNetCore.OpenApi (1)
Schemas\OpenApiJsonSchema.Helpers.cs (1)
102if (reader.TokenType == JsonTokenType.Number)
Microsoft.AspNetCore.SignalR.Common (4)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (4)
93if (reader.TokenType != JsonTokenType.Number) 95throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}."); 110if (reader.TokenType != JsonTokenType.Number) 112throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}.");
Microsoft.AspNetCore.SignalR.Protocols.Json (5)
Protocol\JsonHubProtocol.cs (1)
164throw new InvalidDataException($"Expected '{TypePropertyName}' to be of type {JsonTokenType.Number}.");
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (4)
93if (reader.TokenType != JsonTokenType.Number) 95throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}."); 110if (reader.TokenType != JsonTokenType.Number) 112throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}.");
Microsoft.AspNetCore.SignalR.StackExchangeRedis (4)
src\SignalR\common\Shared\SystemTextJsonExtensions.cs (4)
93if (reader.TokenType != JsonTokenType.Number) 95throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}."); 110if (reader.TokenType != JsonTokenType.Number) 112throw new InvalidDataException($"Expected '{propertyName}' to be of type {JsonTokenType.Number}.");
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Protocol\Converters\FormattingOptionsConverter.cs (1)
104JsonTokenType.Number => reader.GetInt32(),
Protocol\Converters\NaturalObjectConverter.cs (1)
42case JsonTokenType.Number:
Protocol\Converters\SumConverter.cs (2)
107JsonTokenType.Number or 285case JsonTokenType.Number:
Protocol\Converters\TextDocumentSyncConverter.cs (1)
16if (reader.TokenType == JsonTokenType.Number)
Protocol\Internal\Converters\ObjectContentConverter.cs (1)
72else if (reader.TokenType == JsonTokenType.Number)
Microsoft.JSInterop (1)
Infrastructure\ByteArrayJsonConverter.cs (1)
49else if (!reader.Read() || reader.TokenType != JsonTokenType.Number)
Microsoft.ML.SearchSpace (1)
Converter\ParameterConverter.cs (1)
24case JsonTokenType.Number:
System.Text.Json (93)
src\libraries\System.Text.Json\Common\JsonNumberHandling.cs (2)
16/// Numbers will only be read from <see cref="JsonTokenType.Number"/> tokens and will only be written as JSON numbers (without quotes). 22/// Does not prevent numbers from being read from <see cref="JsonTokenType.Number"/> token.
System\Text\Json\Document\JsonDocument.cs (13)
425CheckExpectedType(JsonTokenType.Number, row.TokenType); 447CheckExpectedType(JsonTokenType.Number, row.TokenType); 469CheckExpectedType(JsonTokenType.Number, row.TokenType); 491CheckExpectedType(JsonTokenType.Number, row.TokenType); 513CheckExpectedType(JsonTokenType.Number, row.TokenType); 535CheckExpectedType(JsonTokenType.Number, row.TokenType); 557CheckExpectedType(JsonTokenType.Number, row.TokenType); 579CheckExpectedType(JsonTokenType.Number, row.TokenType); 601CheckExpectedType(JsonTokenType.Number, row.TokenType); 623CheckExpectedType(JsonTokenType.Number, row.TokenType); 645CheckExpectedType(JsonTokenType.Number, row.TokenType); 817case JsonTokenType.Number: 848case JsonTokenType.Number:
System\Text\Json\Document\JsonDocument.Parse.cs (2)
535case JsonTokenType.Number: 737if (tokenType == JsonTokenType.String || tokenType == JsonTokenType.Number)
System\Text\Json\Document\JsonElement.cs (1)
1663case JsonTokenType.Number:
System\Text\Json\Reader\JsonReaderHelper.cs (1)
60case JsonTokenType.Number:
System\Text\Json\Reader\Utf8JsonReader.cs (4)
992_tokenType = JsonTokenType.Number; 1212_tokenType = JsonTokenType.Number; 2571JsonTokenType.Number => nameof(JsonTokenType.Number),
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (2)
364_tokenType = JsonTokenType.Number; 678_tokenType = JsonTokenType.Number;
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (37)
81Debug.Assert(_tokenType is JsonTokenType.String or JsonTokenType.PropertyName or JsonTokenType.Number); 82Debug.Assert(_tokenType != JsonTokenType.Number || !ValueIsEscaped, "Numbers can't contain escape characters."); 145Debug.Assert(_tokenType is JsonTokenType.String or JsonTokenType.PropertyName or JsonTokenType.Number); 146Debug.Assert(_tokenType != JsonTokenType.Number || !ValueIsEscaped, "Numbers can't contain escape characters."); 302/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 336/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 371/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 405/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 439/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 473/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 508/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 543/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 578/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 635/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 692/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 852/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 857if (TokenType != JsonTokenType.Number) 887/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 893if (TokenType != JsonTokenType.Number) 923/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 928if (TokenType != JsonTokenType.Number) 958/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 963if (TokenType != JsonTokenType.Number) 993/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 998if (TokenType != JsonTokenType.Number) 1028/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 1034if (TokenType != JsonTokenType.Number) 1064/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 1070if (TokenType != JsonTokenType.Number) 1100/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 1106if (TokenType != JsonTokenType.Number) 1136/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 1141if (TokenType != JsonTokenType.Number) 1166/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 1171if (TokenType != JsonTokenType.Number) 1196/// Thrown if trying to get the value of a JSON token that is not a <see cref="JsonTokenType.Number"/>. 1201if (TokenType != JsonTokenType.Number)
System\Text\Json\Serialization\Converters\Node\JsonNodeConverter.cs (1)
46case JsonTokenType.Number:
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
113case JsonTokenType.Number when (_converterOptions & EnumConverterOptions.AllowNumbers) != 0:
System\Text\Json\Serialization\Converters\Value\HalfConverter.cs (1)
23if (reader.TokenType != JsonTokenType.Number)
System\Text\Json\Serialization\Converters\Value\Int128Converter.cs (1)
23if (reader.TokenType != JsonTokenType.Number)
System\Text\Json\Serialization\Converters\Value\UInt128Converter.cs (1)
23if (reader.TokenType != JsonTokenType.Number)
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (1)
249case JsonTokenType.Number:
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (1)
393case JsonTokenType.Number:
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (3)
31_tokenType = JsonTokenType.Number; 83_tokenType = JsonTokenType.Number; 108_tokenType = JsonTokenType.Number;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (3)
33_tokenType = JsonTokenType.Number; 86_tokenType = JsonTokenType.Number; 112_tokenType = JsonTokenType.Number;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (3)
33_tokenType = JsonTokenType.Number; 86_tokenType = JsonTokenType.Number; 112_tokenType = JsonTokenType.Number;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.FormattedNumber.cs (3)
38_tokenType = JsonTokenType.Number; 68_tokenType = JsonTokenType.Number; 79_tokenType = JsonTokenType.Number;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (3)
31_tokenType = JsonTokenType.Number; 83_tokenType = JsonTokenType.Number; 108_tokenType = JsonTokenType.Number;
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (3)
32_tokenType = JsonTokenType.Number; 86_tokenType = JsonTokenType.Number; 112_tokenType = JsonTokenType.Number;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Decimal.cs (1)
39_tokenType = JsonTokenType.Number;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Double.cs (1)
43_tokenType = JsonTokenType.Number;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Float.cs (1)
43_tokenType = JsonTokenType.Number;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs (1)
44_tokenType = JsonTokenType.Number;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.SignedNumber.cs (1)
52_tokenType = JsonTokenType.Number;
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.UnsignedNumber.cs (1)
54_tokenType = JsonTokenType.Number;