1 write to IsValueType
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\TypeRef.cs (1)
20
IsValueType
= type.IsValueType;
12 references to IsValueType
System.Text.Json.SourceGeneration (12)
JsonSourceGenerator.Emitter.cs (11)
747
if (!typeMetadata.TypeRef.
IsValueType
)
1004
string castExpr = typeGenerationSpec.TypeRef.
IsValueType
1049
return typeGenerationSpec.TypeRef.
IsValueType
1078
string castExpr = typeGenerationSpec.TypeRef.
IsValueType
1099
string setterCastExpr = typeGenerationSpec.TypeRef.
IsValueType
1155
string refPrefix = typeGenerationSpec.TypeRef.
IsValueType
? "ref " : "";
1193
if (typeGenerationSpec.TypeRef.
IsValueType
)
1215
if (typeGenerationSpec.TypeRef.
IsValueType
)
1264
string refPrefix = typeGenerationSpec.TypeRef.
IsValueType
? "ref " : "";
1528
return typeGenSpec.TypeRef.
IsValueType
1863
string valueTypeRef = typeGenSpec.TypeRef.
IsValueType
src\runtime\src\libraries\Common\src\SourceGenerators\TypeRef.cs (1)
36
public bool CanBeNull => !
IsValueType
|| SpecialType is SpecialType.System_Nullable_T;