Base:
property
IsReferenceType
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.IsReferenceType
Implemented interface member:
property
IsReferenceType
Microsoft.CodeAnalysis.Symbols.ITypeSymbolInternal.IsReferenceType
53 references to IsReferenceType
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder.ValueChecks.cs (2)
3118if (!_underlyingParameter.ContainingType.IsInterface || _type.IsReferenceType) 3148if (!_underlyingParameter.ContainingType.IsInterface || _type.IsReferenceType)
Binder\Semantics\Conversions\ConversionsBase.cs (9)
3253if (source.IsReferenceType) 3547if ((object)t != null && t.IsReferenceType) 3559if ((object)t != null && source.IsInterfaceType() && t.IsReferenceType) 3565if ((object)s != null && s.IsReferenceType && destination.IsInterfaceType() && !HasImplicitReferenceTypeParameterConversion(s, destination, ref useSiteInfo)) 3571if ((object)s != null && (object)t != null && t.IsReferenceType && t.DependsOn(s)) 3599if ((object)t != null && !t.IsReferenceType) 3611if (source.IsInterfaceType() && (object)t != null && !t.IsReferenceType) 3617if ((object)s != null && !s.IsReferenceType && destination.IsInterfaceType() && !HasImplicitReferenceTypeParameterConversion(s, destination, ref useSiteInfo)) 3623if ((object)s != null && (object)t != null && !t.IsReferenceType && t.DependsOn(s))
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
661if (!typeParameter.IsReferenceType) 675if (typeParameter.IsReferenceType || typeParameter.IsValueType)
Symbols\TypeSymbolExtensions.cs (1)
79return !typeParameter.IsValueType && !(typeParameter.IsReferenceType && typeParameter.IsNotNullable == true);
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
583Assert.True(typeParameter.IsReferenceType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (37)
Semantics\GenericConstraintsTests.cs (9)
453Assert.False(typeParameter.IsReferenceType); 471Assert.False(typeParameter.IsReferenceType); 490Assert.True(typeParameter.IsReferenceType); 509Assert.False(typeParameter.IsReferenceType); 2121Assert.False(typeParameter.IsReferenceType); 2146Assert.False(typeParameter.IsReferenceType); 2167Assert.False(typeParameter.IsReferenceType); 2197Assert.False(typeParameter.IsReferenceType); 2949Assert.False(typeParameter.IsReferenceType);
Semantics\NullableReferenceTypesTests.cs (28)
17839Assert.True(tp.IsReferenceType); 98530Assert.False(t11.IsReferenceType); 99027Assert.True(t11.IsReferenceType); 100344Assert.False(t1.IsReferenceType); 100382Assert.False(t1.IsReferenceType); 100426Assert.False(t1.IsReferenceType); 100433Assert.False(t2.IsReferenceType); 100465Assert.False(t1.IsReferenceType); 100485Assert.False(t1.IsReferenceType); 100584Assert.True(t1.IsReferenceType); 100591Assert.True(t2.IsReferenceType); 100629Assert.True(t1.IsReferenceType); 100636Assert.True(t2.IsReferenceType); 100668Assert.True(t1.IsReferenceType); 100718Assert.False(at1.IsReferenceType); 100748Assert.False(tf1.IsReferenceType); 100813Assert.True(at1.IsReferenceType); 100841Assert.True(tf1.IsReferenceType); 100901Assert.True(at1.IsReferenceType); 100926Assert.True(tf1.IsReferenceType); 100962Assert.True(t1.IsReferenceType); 100986Assert.True(t1.IsReferenceType); 101011Assert.True(t1.IsReferenceType); 101038Assert.True(t1.IsReferenceType); 101087Assert.True(at1.IsReferenceType); 101112Assert.True(tf1.IsReferenceType); 101169Assert.True(at1.IsReferenceType); 101194Assert.True(tf1.IsReferenceType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\GenericConstraintTests.cs (1)
5753Assert.Equal(typeParameter.IsReferenceType, isReferenceType);