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