16 references to JsonNumberHandling
System.Text.Json.SourceGeneration (16)
JsonSourceGenerator.Emitter.cs (2)
1237if (optionsSpec.NumberHandling is JsonNumberHandling numberHandling) 1433private static string FormatNumberHandling(JsonNumberHandling? numberHandling)
JsonSourceGenerator.Parser.cs (8)
278JsonNumberHandling? numberHandling = null; 364numberHandling = (JsonNumberHandling)namedArg.Value.Value!; 524out JsonNumberHandling? numberHandling, 685out JsonNumberHandling? numberHandling, 705numberHandling = (JsonNumberHandling)attributeData.ConstructorArguments[0].Value!; 1130out JsonNumberHandling? numberHandling, 1235out JsonNumberHandling? numberHandling, 1294numberHandling = (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)
45internal static bool RequiresSpecialNumberHandlingOnWrite(JsonNumberHandling? handling) 48? (handling.Value & (JsonNumberHandling.WriteAsString | JsonNumberHandling.AllowNamedFloatingPointLiterals)) != 0
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (2)
35NumberHandling = JsonNumberHandling.AllowReadingFromString; 96public JsonNumberHandling NumberHandling { get; set; }