16 references to JsonNumberHandling
System.Text.Json.SourceGeneration (16)
JsonSourceGenerator.Emitter.cs (2)
1237
if (optionsSpec.NumberHandling is
JsonNumberHandling
numberHandling)
1433
private static string FormatNumberHandling(
JsonNumberHandling
? numberHandling)
JsonSourceGenerator.Parser.cs (8)
278
JsonNumberHandling
? numberHandling = null;
364
numberHandling = (
JsonNumberHandling
)namedArg.Value.Value!;
524
out
JsonNumberHandling
? numberHandling,
685
out
JsonNumberHandling
? numberHandling,
705
numberHandling = (
JsonNumberHandling
)attributeData.ConstructorArguments[0].Value!;
1130
out
JsonNumberHandling
? numberHandling,
1235
out
JsonNumberHandling
? numberHandling,
1294
numberHandling = (
JsonNumberHandling
)ctorArgs[0].Value!;
Model\PropertyGenerationSpec.cs (1)
116
/// The <see cref="
JsonNumberHandling
"/> for the property.
src\libraries\System.Text.Json\Common\JsonHelpers.cs (3)
45
internal static bool RequiresSpecialNumberHandlingOnWrite(
JsonNumberHandling
? handling)
48
? (handling.Value & (
JsonNumberHandling
.WriteAsString |
JsonNumberHandling
.AllowNamedFloatingPointLiterals)) != 0
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (2)
35
NumberHandling =
JsonNumberHandling
.AllowReadingFromString;
96
public
JsonNumberHandling
NumberHandling { get; set; }