15 references to JsonObjectCreationHandling
System.Text.Json.SourceGeneration (15)
JsonSourceGenerator.Emitter.cs (2)
1245if (optionsSpec.PreferredObjectCreationHandling is JsonObjectCreationHandling preferredObjectCreationHandling) 1443private static string FormatObjectCreationHandling(JsonObjectCreationHandling creationHandling)
JsonSourceGenerator.Parser.cs (8)
279JsonObjectCreationHandling? preferredObjectCreationHandling = null; 368preferredObjectCreationHandling = (JsonObjectCreationHandling)namedArg.Value.Value!; 526out JsonObjectCreationHandling? preferredPropertyObjectCreationHandling, 687out JsonObjectCreationHandling? objectCreationHandling, 715objectCreationHandling = (JsonObjectCreationHandling)attributeData.ConstructorArguments[0].Value!; 1131out JsonObjectCreationHandling? objectCreationHandling, 1236out JsonObjectCreationHandling? objectCreationHandling, 1300objectCreationHandling = (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)
47public required JsonObjectCreationHandling? PreferredObjectCreationHandling { get; init; }
Model\TypeGenerationSpec.cs (1)
58public required JsonObjectCreationHandling? PreferredPropertyObjectCreationHandling { get; init; }
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
101public JsonObjectCreationHandling PreferredObjectCreationHandling { get; set; }