45 references to Number
Microsoft.AspNetCore.Components.Web (1)
JSComponents\JSComponentInterop.cs (1)
122case JsonValueKind.Number:
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
ConverterTests\JsonElementComparer.cs (2)
44case JsonValueKind.Number: 118case JsonValueKind.Number:
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Infrastructure\DefaultTempDataSerializer.cs (2)
39case JsonValueKind.Number: 102else if (arrayElement[0].ValueKind == JsonValueKind.Number)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Contents\FunctionCallContentTests..cs (1)
304Assert.True(kvp.Value is JsonElement { ValueKind: JsonValueKind.Number });
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
143JsonValueKind.Number => jsonElement.GetDouble(),
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationFileParser.cs (1)
95case JsonValueKind.Number:
System.Text.Json (37)
System\Text\Json\Document\JsonElement.cs (23)
452/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 470/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 501/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 521/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 551/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 568/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 598/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 619/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 650/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 667/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 697/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 718/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 749/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 769/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 799/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 820/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 860/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 888/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 927/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 955/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 985/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 1006/// This value's <see cref="ValueKind"/> is not <see cref="JsonValueKind.Number"/>. 1284case JsonValueKind.Number:
System\Text\Json\Nodes\JsonValueOfElement.cs (2)
16Debug.Assert(value.ValueKind is JsonValueKind.False or JsonValueKind.True or JsonValueKind.Number or JsonValueKind.String); 62case JsonValueKind.Number:
System\Text\Json\Nodes\JsonValueOfT.cs (12)
104return JsonValueKind.Number; 110TypeCode.SByte => JsonValueKind.Number, 111TypeCode.Byte => JsonValueKind.Number, 112TypeCode.Int16 => JsonValueKind.Number, 113TypeCode.UInt16 => JsonValueKind.Number, 114TypeCode.Int32 => JsonValueKind.Number, 115TypeCode.UInt32 => JsonValueKind.Number, 116TypeCode.Int64 => JsonValueKind.Number, 117TypeCode.UInt64 => JsonValueKind.Number, 118TypeCode.Single => JsonValueKind.Number, 119TypeCode.Double => JsonValueKind.Number, 120TypeCode.Decimal => JsonValueKind.Number,