1 write to PropertyType
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1227
PropertyType
= propertyTypeRef,
11 references to PropertyType
System.Text.Json.SourceGeneration (11)
JsonSourceGenerator.Emitter.cs (8)
615
string propertyTypeFQN = property.
PropertyType
.FullyQualifiedName;
648
TypeRef? nullableUnderlyingType = _typeIndex[property.
PropertyType
].NullableUnderlyingType;
657
? $"typeof({property.DeclaringType.FullyQualifiedName}).GetProperty({FormatStringLiteral(property.MemberName)}, {InstanceMemberBindingFlagsVariableName}, null, typeof({property.
PropertyType
.FullyQualifiedName}), {EmptyTypeArray}, null)"
812
TypeGenerationSpec propertyTypeSpec = _typeIndex[propertyGenSpec.
PropertyType
];
839
writer.WriteLine($"{propertyGenSpec.
PropertyType
.FullyQualifiedName} {localVariableName} = {objectExpr}.{propertyGenSpec.NameSpecifiedInSourceCode};");
864
writer.WriteLine($"if (!{EqualityComparerTypeRef}<{propertyGenSpec.
PropertyType
.FullyQualifiedName}>.Default.Equals(default, {propValueExpr}))");
1067
JsonIgnoreCondition.WhenWritingNull => propertySpec.
PropertyType
.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.None,
1068
JsonIgnoreCondition.WhenWritingDefault => propertySpec.
PropertyType
.CanBeNull ? SerializedValueCheckType.IgnoreWhenNull : SerializedValueCheckType.IgnoreWhenDefault,
JsonSourceGenerator.Parser.cs (2)
1551
ParameterType = property.
PropertyType
,
1554
IsNullable = property.
PropertyType
.CanBeNull && !property.IsSetterNonNullableAnnotation,
Model\TypeGenerationSpec.cs (1)
122
if (property.
PropertyType
.SpecialType is SpecialType.System_Object ||