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