2 references to WhenWritingNull
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Emitter.cs (1)
1665JsonIgnoreCondition.WhenWritingNull => propertySpec.PropertyType.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.None,
JsonSourceGenerator.Parser.cs (1)
1300ignoreCondition = typeIgnoreCondition == JsonIgnoreCondition.WhenWritingNull && !memberType.IsNullableType()