45 references to Number
Microsoft.AspNetCore.Components.Web (1)
JSComponents\JSComponentInterop.cs (1)
122
case JsonValueKind.
Number
:
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
ConverterTests\JsonElementComparer.cs (2)
44
case JsonValueKind.
Number
:
118
case JsonValueKind.
Number
:
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Infrastructure\DefaultTempDataSerializer.cs (2)
39
case JsonValueKind.
Number
:
102
else if (arrayElement[0].ValueKind == JsonValueKind.
Number
)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Contents\FunctionCallContentTests..cs (1)
304
Assert.True(kvp.Value is JsonElement { ValueKind: JsonValueKind.
Number
});
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
143
JsonValueKind.
Number
=> jsonElement.GetDouble(),
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationFileParser.cs (1)
95
case 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
"/>.
1284
case JsonValueKind.
Number
:
System\Text\Json\Nodes\JsonValueOfElement.cs (2)
16
Debug.Assert(value.ValueKind is JsonValueKind.False or JsonValueKind.True or JsonValueKind.
Number
or JsonValueKind.String);
62
case JsonValueKind.
Number
:
System\Text\Json\Nodes\JsonValueOfT.cs (12)
104
return JsonValueKind.
Number
;
110
TypeCode.SByte => JsonValueKind.
Number
,
111
TypeCode.Byte => JsonValueKind.
Number
,
112
TypeCode.Int16 => JsonValueKind.
Number
,
113
TypeCode.UInt16 => JsonValueKind.
Number
,
114
TypeCode.Int32 => JsonValueKind.
Number
,
115
TypeCode.UInt32 => JsonValueKind.
Number
,
116
TypeCode.Int64 => JsonValueKind.
Number
,
117
TypeCode.UInt64 => JsonValueKind.
Number
,
118
TypeCode.Single => JsonValueKind.
Number
,
119
TypeCode.Double => JsonValueKind.
Number
,
120
TypeCode.Decimal => JsonValueKind.
Number
,