17 references to AllowNamedFloatingPointLiterals
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\JsonConverterHelper.cs (1)
47
NumberHandling = JsonNumberHandling.
AllowNamedFloatingPointLiterals
,
Microsoft.Extensions.AI.Abstractions (1)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
666
if (isIeeeFloatingPoint && (numberHandling & JsonNumberHandling.
AllowNamedFloatingPointLiterals
) != 0)
Microsoft.Extensions.AI.Abstractions.Tests (2)
test\Shared\JsonSchemaExporter\TestTypes.cs (2)
934
[JsonNumberHandling(JsonNumberHandling.
AllowNamedFloatingPointLiterals
)]
940
[JsonNumberHandling(JsonNumberHandling.
AllowNamedFloatingPointLiterals
)]
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
666
if (isIeeeFloatingPoint && (numberHandling & JsonNumberHandling.
AllowNamedFloatingPointLiterals
) != 0)
Shared.Tests (2)
JsonSchemaExporter\TestTypes.cs (2)
934
[JsonNumberHandling(JsonNumberHandling.
AllowNamedFloatingPointLiterals
)]
940
[JsonNumberHandling(JsonNumberHandling.
AllowNamedFloatingPointLiterals
)]
System.Text.Json (10)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
62
? (handling.Value & (JsonNumberHandling.WriteAsString | JsonNumberHandling.
AllowNamedFloatingPointLiterals
)) != 0
src\libraries\System.Text.Json\Common\JsonNumberHandling.cs (1)
9
/// The behavior of <see cref="WriteAsString"/> and <see cref="
AllowNamedFloatingPointLiterals
"/> is not defined by the JSON specification. Altering the default number handling can potentially produce JSON that cannot be parsed by other JSON implementations.
System\Text\Json\Serialization\Converters\Value\DoubleConverter.cs (2)
46
else if ((JsonNumberHandling.
AllowNamedFloatingPointLiterals
& handling) != 0)
61
else if ((JsonNumberHandling.
AllowNamedFloatingPointLiterals
& handling) != 0)
System\Text\Json\Serialization\Converters\Value\HalfConverter.cs (2)
99
else if ((JsonNumberHandling.
AllowNamedFloatingPointLiterals
& handling) != 0)
126
else if ((JsonNumberHandling.
AllowNamedFloatingPointLiterals
& handling) != 0)
System\Text\Json\Serialization\Converters\Value\JsonPrimitiveConverter.cs (1)
53
if (isIeeeFloatingPoint && (numberHandling & JsonNumberHandling.
AllowNamedFloatingPointLiterals
) != 0)
System\Text\Json\Serialization\Converters\Value\SingleConverter.cs (2)
47
else if ((JsonNumberHandling.
AllowNamedFloatingPointLiterals
& handling) != 0)
62
else if ((JsonNumberHandling.
AllowNamedFloatingPointLiterals
& handling) != 0)
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (1)
90
JsonNumberHandling.
AllowNamedFloatingPointLiterals
));