Base:
property
IsReferenceType
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.IsReferenceType
Implemented interface member:
property
IsReferenceType
Microsoft.CodeAnalysis.Symbols.ITypeSymbolInternal.IsReferenceType
1 override of IsReferenceType
Microsoft.CodeAnalysis.CSharp (1)
Symbols\ErrorTypeSymbol.cs (1)
90
public override bool
IsReferenceType
25 references to IsReferenceType
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder.ValueChecks.cs (6)
957
if (RequiresAssignableVariable(valueKind) && !backingField.ContainingType.
IsReferenceType
&& (this.ContainingMemberOrLambda as MethodSymbol)?.IsEffectivelyReadOnly == true)
1184
if (fieldSymbol.IsStatic || fieldSymbol.ContainingType.
IsReferenceType
)
1267
if (fieldSymbol.IsStatic || fieldSymbol.ContainingType.
IsReferenceType
)
1289
if (fieldSymbol.IsStatic || fieldSymbol.ContainingType.
IsReferenceType
)
1314
if (eventSymbol.IsStatic || eventSymbol.ContainingType.
IsReferenceType
)
3001
if (eventSymbol.IsStatic || eventSymbol.ContainingType.
IsReferenceType
)
FlowAnalysis\DefiniteAssignment.cs (1)
1425
if (fieldSymbol.ContainingType.
IsReferenceType
|| fieldSymbol.IsStatic) return null;
FlowAnalysis\NullableWalker.cs (1)
5970
method.ContainingType.
IsReferenceType
)
FlowAnalysis\ReadWriteWalker.cs (1)
168
if (expr.FieldSymbol.ContainingType.
IsReferenceType
) return;
Lowering\DiagnosticsPass_Warnings.cs (1)
357
if ((object)nt == null || !nt.
IsReferenceType
|| nt.IsInterface)
Lowering\SpillSequenceSpiller.cs (1)
853
if (field.FieldSymbol.ContainingType.
IsReferenceType
)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
581
var isFieldOfStruct = !field.FieldSymbol.ContainingType.
IsReferenceType
;
Symbols\Source\SourceDestructorSymbol.cs (1)
60
else if (!containingType.
IsReferenceType
)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\RecordStructTests.cs (2)
392
Assert.False(point.
IsReferenceType
);
482
Assert.False(point.
IsReferenceType
);
Semantics\RecordTests.cs (1)
117
Assert.True(point.
IsReferenceType
);
Semantics\TopLevelStatementsTests.cs (1)
9217
Assert.True(entryPoint.ContainingType.
IsReferenceType
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Symbols\Metadata\MetadataTypeTests.cs (4)
84
Assert.True(class1.
IsReferenceType
);
134
Assert.True(type1.
IsReferenceType
);
182
Assert.True(type1.
IsReferenceType
);
232
Assert.False(type1.
IsReferenceType
);
Symbols\Source\DelegateTests.cs (1)
131
Assert.True(v.
IsReferenceType
);
Symbols\Source\MethodTests.cs (3)
1171
Assert.False(type1.
IsReferenceType
);
1209
Assert.True(type2.
IsReferenceType
);
1264
Assert.True(type1.
IsReferenceType
);