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)
3406if (!_underlyingParameter.ContainingType.IsInterface || _type.IsReferenceType) 3438if (!_underlyingParameter.ContainingType.IsInterface || _type.IsReferenceType)
Binder\Semantics\Conversions\ConversionsBase.cs (9)
3275if (source.IsReferenceType) 3569if ((object)t != null && t.IsReferenceType) 3581if ((object)t != null && source.IsInterfaceType() && t.IsReferenceType) 3587if ((object)s != null && s.IsReferenceType && destination.IsInterfaceType() && !HasImplicitReferenceTypeParameterConversion(s, destination, ref useSiteInfo)) 3593if ((object)s != null && (object)t != null && t.IsReferenceType && t.DependsOn(s)) 3621if ((object)t != null && !t.IsReferenceType) 3633if (source.IsInterfaceType() && (object)t != null && !t.IsReferenceType) 3639if ((object)s != null && !s.IsReferenceType && destination.IsInterfaceType() && !HasImplicitReferenceTypeParameterConversion(s, destination, ref useSiteInfo)) 3645if ((object)s != null && (object)t != null && !t.IsReferenceType && t.DependsOn(s))
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
681if (!typeParameter.IsReferenceType) 695if (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)
17843Assert.True(tp.IsReferenceType); 98602Assert.False(t11.IsReferenceType); 99099Assert.True(t11.IsReferenceType); 100416Assert.False(t1.IsReferenceType); 100454Assert.False(t1.IsReferenceType); 100498Assert.False(t1.IsReferenceType); 100505Assert.False(t2.IsReferenceType); 100537Assert.False(t1.IsReferenceType); 100557Assert.False(t1.IsReferenceType); 100656Assert.True(t1.IsReferenceType); 100663Assert.True(t2.IsReferenceType); 100701Assert.True(t1.IsReferenceType); 100708Assert.True(t2.IsReferenceType); 100740Assert.True(t1.IsReferenceType); 100790Assert.False(at1.IsReferenceType); 100820Assert.False(tf1.IsReferenceType); 100885Assert.True(at1.IsReferenceType); 100913Assert.True(tf1.IsReferenceType); 100973Assert.True(at1.IsReferenceType); 100998Assert.True(tf1.IsReferenceType); 101034Assert.True(t1.IsReferenceType); 101058Assert.True(t1.IsReferenceType); 101083Assert.True(t1.IsReferenceType); 101110Assert.True(t1.IsReferenceType); 101159Assert.True(at1.IsReferenceType); 101184Assert.True(tf1.IsReferenceType); 101241Assert.True(at1.IsReferenceType); 101266Assert.True(tf1.IsReferenceType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\GenericConstraintTests.cs (1)
5764Assert.Equal(typeParameter.IsReferenceType, isReferenceType);