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)
3357if (!_underlyingParameter.ContainingType.IsInterface || _type.IsReferenceType) 3389if (!_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)
679if (!typeParameter.IsReferenceType) 693if (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); 98557Assert.False(t11.IsReferenceType); 99054Assert.True(t11.IsReferenceType); 100371Assert.False(t1.IsReferenceType); 100409Assert.False(t1.IsReferenceType); 100453Assert.False(t1.IsReferenceType); 100460Assert.False(t2.IsReferenceType); 100492Assert.False(t1.IsReferenceType); 100512Assert.False(t1.IsReferenceType); 100611Assert.True(t1.IsReferenceType); 100618Assert.True(t2.IsReferenceType); 100656Assert.True(t1.IsReferenceType); 100663Assert.True(t2.IsReferenceType); 100695Assert.True(t1.IsReferenceType); 100745Assert.False(at1.IsReferenceType); 100775Assert.False(tf1.IsReferenceType); 100840Assert.True(at1.IsReferenceType); 100868Assert.True(tf1.IsReferenceType); 100928Assert.True(at1.IsReferenceType); 100953Assert.True(tf1.IsReferenceType); 100989Assert.True(t1.IsReferenceType); 101013Assert.True(t1.IsReferenceType); 101038Assert.True(t1.IsReferenceType); 101065Assert.True(t1.IsReferenceType); 101114Assert.True(at1.IsReferenceType); 101139Assert.True(tf1.IsReferenceType); 101196Assert.True(at1.IsReferenceType); 101221Assert.True(tf1.IsReferenceType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\GenericConstraintTests.cs (1)
5764Assert.Equal(typeParameter.IsReferenceType, isReferenceType);