15 references to JsonObjectCreationHandling
System.Text.Json.SourceGeneration (15)
JsonSourceGenerator.Emitter.cs (2)
1975if (optionsSpec.PreferredObjectCreationHandling is JsonObjectCreationHandling preferredObjectCreationHandling) 2172private static string FormatObjectCreationHandling(JsonObjectCreationHandling creationHandling)
JsonSourceGenerator.Parser.cs (8)
348JsonObjectCreationHandling? preferredObjectCreationHandling = null; 438preferredObjectCreationHandling = (JsonObjectCreationHandling)namedArg.Value.Value!; 618out JsonObjectCreationHandling? preferredPropertyObjectCreationHandling, 831out JsonObjectCreationHandling? objectCreationHandling, 875objectCreationHandling = (JsonObjectCreationHandling)attributeData.ConstructorArguments[0].Value!; 1852out JsonObjectCreationHandling? objectCreationHandling, 1992out JsonObjectCreationHandling? objectCreationHandling, 2072objectCreationHandling = (JsonObjectCreationHandling)ctorArgs[0].Value!;
Model\PropertyGenerationSpec.cs (2)
121/// The <see cref="JsonObjectCreationHandling"/> for the property. 123public required JsonObjectCreationHandling? ObjectCreationHandling { get; init; }
Model\SourceGenerationOptionsSpec.cs (1)
49public required JsonObjectCreationHandling? PreferredObjectCreationHandling { get; init; }
Model\TypeGenerationSpec.cs (1)
60public required JsonObjectCreationHandling? PreferredPropertyObjectCreationHandling { get; init; }
src\runtime\src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
108public JsonObjectCreationHandling PreferredObjectCreationHandling { get; set; }