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)
93
public override bool
IsReferenceType
26 references to IsReferenceType
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder.ValueChecks.cs (6)
1390
if (RequiresAssignableVariable(valueKind) && !backingField.ContainingType.
IsReferenceType
&& (this.ContainingMemberOrLambda as MethodSymbol)?.IsEffectivelyReadOnly == true)
1639
if (fieldSymbol.IsStatic || fieldSymbol.ContainingType.
IsReferenceType
)
1722
if (fieldSymbol.IsStatic || fieldSymbol.ContainingType.
IsReferenceType
)
1744
if (fieldSymbol.IsStatic || fieldSymbol.ContainingType.
IsReferenceType
)
1769
if (eventSymbol.IsStatic || eventSymbol.ContainingType.
IsReferenceType
)
3612
if (eventSymbol.IsStatic || eventSymbol.ContainingType.
IsReferenceType
)
FlowAnalysis\DefiniteAssignment.cs (1)
1493
if (fieldSymbol.ContainingType.
IsReferenceType
|| fieldSymbol.IsStatic) return null;
FlowAnalysis\NullableWalker.cs (1)
6980
method.ContainingType.
IsReferenceType
)
FlowAnalysis\ReadWriteWalker.cs (1)
178
if (expr.FieldSymbol.ContainingType.
IsReferenceType
) return;
Lowering\DiagnosticsPass_Warnings.cs (1)
357
if ((object)nt == null || !nt.
IsReferenceType
|| nt.IsInterface)
Lowering\SpillSequenceSpiller.cs (1)
925
if (field.FieldSymbol.ContainingType.
IsReferenceType
)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
621
var isFieldOfStruct = !field.FieldSymbol.ContainingType.
IsReferenceType
;
Symbols\NamespaceSymbol.cs (1)
369
if (!type.
IsReferenceType
|| !type.IsStatic || type.IsGenericType || !type.MightContainExtensionMethods) return;
Symbols\Source\SourceDestructorSymbol.cs (1)
56
else if (!containingType.
IsReferenceType
)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\RecordTests.cs (1)
117
Assert.True(point.
IsReferenceType
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\RecordStructTests.cs (2)
392
Assert.False(point.
IsReferenceType
);
482
Assert.False(point.
IsReferenceType
);
Semantics\TopLevelStatementsTests.cs (1)
9230
Assert.True(entryPoint.ContainingType.
IsReferenceType
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Symbols\Metadata\MetadataTypeTests.cs (4)
85
Assert.True(class1.
IsReferenceType
);
135
Assert.True(type1.
IsReferenceType
);
183
Assert.True(type1.
IsReferenceType
);
233
Assert.False(type1.
IsReferenceType
);
Symbols\Source\DelegateTests.cs (1)
131
Assert.True(v.
IsReferenceType
);
Symbols\Source\MethodTests.cs (3)
1172
Assert.False(type1.
IsReferenceType
);
1210
Assert.True(type2.
IsReferenceType
);
1265
Assert.True(type1.
IsReferenceType
);