15 references to JsonObjectCreationHandling
System.Text.Json.SourceGeneration (15)
JsonSourceGenerator.Emitter.cs (2)
2125
if (optionsSpec.PreferredObjectCreationHandling is
JsonObjectCreationHandling
preferredObjectCreationHandling)
2322
private static string FormatObjectCreationHandling(
JsonObjectCreationHandling
creationHandling)
JsonSourceGenerator.Parser.cs (8)
424
JsonObjectCreationHandling
? preferredObjectCreationHandling = null;
515
preferredObjectCreationHandling = (
JsonObjectCreationHandling
)namedArg.Value.Value!;
710
out
JsonObjectCreationHandling
? preferredPropertyObjectCreationHandling,
961
out
JsonObjectCreationHandling
? objectCreationHandling,
1009
objectCreationHandling = (
JsonObjectCreationHandling
)attributeData.ConstructorArguments[0].Value!;
2380
out
JsonObjectCreationHandling
? objectCreationHandling,
2537
out
JsonObjectCreationHandling
? objectCreationHandling,
2617
objectCreationHandling = (
JsonObjectCreationHandling
)ctorArgs[0].Value!;
Model\PropertyGenerationSpec.cs (2)
121
/// The <see cref="
JsonObjectCreationHandling
"/> for the property.
123
public required
JsonObjectCreationHandling
? ObjectCreationHandling { get; init; }
Model\SourceGenerationOptionsSpec.cs (1)
55
public required
JsonObjectCreationHandling
? PreferredObjectCreationHandling { get; init; }
Model\TypeGenerationSpec.cs (1)
67
public required
JsonObjectCreationHandling
? PreferredPropertyObjectCreationHandling { get; init; }
src\runtime\src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
108
public
JsonObjectCreationHandling
PreferredObjectCreationHandling { get; set; }