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)
1400
if (RequiresAssignableVariable(valueKind) && !backingField.ContainingType.
IsReferenceType
&& (this.ContainingMemberOrLambda as MethodSymbol)?.IsEffectivelyReadOnly == true)
1649
if (fieldSymbol.IsStatic || fieldSymbol.ContainingType.
IsReferenceType
)
1732
if (fieldSymbol.IsStatic || fieldSymbol.ContainingType.
IsReferenceType
)
1754
if (fieldSymbol.IsStatic || fieldSymbol.ContainingType.
IsReferenceType
)
1779
if (eventSymbol.IsStatic || eventSymbol.ContainingType.
IsReferenceType
)
3752
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)
935
if (field.FieldSymbol.ContainingType.
IsReferenceType
)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
621
var isFieldOfStruct = !field.FieldSymbol.ContainingType.
IsReferenceType
;
Symbols\NamedTypeSymbol.cs (1)
382
if (!
IsReferenceType
|| !IsStatic || IsGenericType || !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)
9284
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
);