12 references to JsonObjectCreationHandling
System.Text.Json.SourceGeneration (12)
JsonSourceGenerator.Emitter.cs (2)
1156
if (optionsSpec.PreferredObjectCreationHandling is
JsonObjectCreationHandling
preferredObjectCreationHandling)
1337
private static string FormatObjectCreationHandling(
JsonObjectCreationHandling
creationHandling)
JsonSourceGenerator.Parser.cs (8)
277
JsonObjectCreationHandling
? preferredObjectCreationHandling = null;
357
preferredObjectCreationHandling = (
JsonObjectCreationHandling
)namedArg.Value.Value!;
508
out
JsonObjectCreationHandling
? preferredPropertyObjectCreationHandling,
663
out
JsonObjectCreationHandling
? objectCreationHandling,
691
objectCreationHandling = (
JsonObjectCreationHandling
)attributeData.ConstructorArguments[0].Value!;
1107
out
JsonObjectCreationHandling
? objectCreationHandling,
1197
out
JsonObjectCreationHandling
? objectCreationHandling,
1261
objectCreationHandling = (
JsonObjectCreationHandling
)ctorArgs[0].Value!;
Model\PropertyGenerationSpec.cs (1)
111
/// The <see cref="
JsonObjectCreationHandling
"/> for the property.
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
101
public
JsonObjectCreationHandling
PreferredObjectCreationHandling { get; set; }