19 references to JsonIgnoreCondition
System.Text.Json.SourceGeneration (19)
JsonSourceGenerator.Emitter.cs (6)
619
{ DefaultIgnoreCondition:
JsonIgnoreCondition
.Always } => "null",
628
{ DefaultIgnoreCondition:
JsonIgnoreCondition
.Always } => "null",
1062
JsonIgnoreCondition
.WhenWritingNull => propertySpec.PropertyType.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.None,
1063
JsonIgnoreCondition
.WhenWritingDefault => propertySpec.PropertyType.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.IgnoreWhenDefault,
1210
if (optionsSpec.DefaultIgnoreCondition is
JsonIgnoreCondition
defaultIgnoreCondition)
1450
private static string FormatIgnoreCondition(
JsonIgnoreCondition
ignoreCondition)
JsonSourceGenerator.Parser.cs (11)
269
JsonIgnoreCondition
? defaultIgnoreCondition = null;
328
defaultIgnoreCondition = (
JsonIgnoreCondition
)namedArg.Value.Value!;
1060
if (other.DefaultIgnoreCondition ==
JsonIgnoreCondition
.Always)
1071
propertySpec.DefaultIgnoreCondition ==
JsonIgnoreCondition
.Always ||
1088
if (propertySpec.DefaultIgnoreCondition ==
JsonIgnoreCondition
.Always)
1129
out
JsonIgnoreCondition
? ignoreCondition,
1183
if (ignoreCondition is not
JsonIgnoreCondition
.Always)
1195
TypeRef propertyTypeRef = ignoreCondition !=
JsonIgnoreCondition
.Always
1234
out
JsonIgnoreCondition
? ignoreCondition,
1277
ignoreCondition =
JsonIgnoreCondition
.Always;
1282
ignoreCondition = (
JsonIgnoreCondition
)namedArgs[0].Value.Value!;
Model\PropertyGenerationSpec.cs (1)
161
if (DefaultIgnoreCondition is
JsonIgnoreCondition
.Always)
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
66
public
JsonIgnoreCondition
DefaultIgnoreCondition { get; set; }