1 write to PropertyType
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
2263
PropertyType
= propertyTypeRef,
12 references to PropertyType
System.Text.Json.SourceGeneration (12)
JsonSourceGenerator.Emitter.cs (9)
825
!_typeIndex.ContainsKey(property.
PropertyType
);
827
string propertyTypeFQN = isIgnoredPropertyOfUnusedType ? "object" : property.
PropertyType
.FullyQualifiedName;
840
TypeRef? nullableUnderlyingType = _typeIndex[property.
PropertyType
].NullableUnderlyingType;
1086
string propertyTypeFQN = property.
PropertyType
.FullyQualifiedName;
1536
TypeGenerationSpec propertyTypeSpec = _typeIndex[propertyGenSpec.
PropertyType
];
1566
writer.WriteLine($"{propertyGenSpec.
PropertyType
.FullyQualifiedName} {localVariableName} = {rawValueExpr};");
1591
writer.WriteLine($"if (!{EqualityComparerTypeRef}<{propertyGenSpec.
PropertyType
.FullyQualifiedName}>.Default.Equals(default, {propValueExpr}))");
1846
JsonIgnoreCondition.WhenWritingNull => propertySpec.
PropertyType
.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.None,
1847
JsonIgnoreCondition.WhenWritingDefault => propertySpec.
PropertyType
.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.IgnoreWhenDefault,
JsonSourceGenerator.Parser.cs (2)
2620
ParameterType = property.
PropertyType
,
2624
IsNullable = property.
PropertyType
.CanBeNull && !property.IsSetterNonNullableAnnotation,
Model\TypeGenerationSpec.cs (1)
152
if (property.
PropertyType
.SpecialType is SpecialType.System_Object ||