Base:
property
IsReferenceType
Microsoft.CodeAnalysis.CSharp.Symbols.TypeSymbol.IsReferenceType
Implemented interface member:
property
IsReferenceType
Microsoft.CodeAnalysis.Symbols.ITypeSymbolInternal.IsReferenceType
51 references to IsReferenceType
Microsoft.CodeAnalysis.CSharp (12)
Binder\Semantics\Conversions\ConversionsBase.cs (9)
3031if (source.IsReferenceType) 3315if ((object)t != null && t.IsReferenceType) 3327if ((object)t != null && source.IsInterfaceType() && t.IsReferenceType) 3333if ((object)s != null && s.IsReferenceType && destination.IsInterfaceType() && !HasImplicitReferenceTypeParameterConversion(s, destination, ref useSiteInfo)) 3339if ((object)s != null && (object)t != null && t.IsReferenceType && t.DependsOn(s)) 3362if ((object)t != null && !t.IsReferenceType) 3374if (source.IsInterfaceType() && (object)t != null && !t.IsReferenceType) 3380if ((object)s != null && !s.IsReferenceType && destination.IsInterfaceType() && !HasImplicitReferenceTypeParameterConversion(s, destination, ref useSiteInfo)) 3386if ((object)s != null && (object)t != null && !t.IsReferenceType && t.DependsOn(s))
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (2)
98if (!typeParameter.IsReferenceType) 112if (typeParameter.IsReferenceType || typeParameter.IsValueType)
Symbols\TypeSymbolExtensions.cs (1)
70return !typeParameter.IsValueType && !(typeParameter.IsReferenceType && typeParameter.IsNotNullable == true);
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
313Assert.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)
17800Assert.True(tp.IsReferenceType); 94760Assert.False(t11.IsReferenceType); 95257Assert.True(t11.IsReferenceType); 96574Assert.False(t1.IsReferenceType); 96612Assert.False(t1.IsReferenceType); 96656Assert.False(t1.IsReferenceType); 96663Assert.False(t2.IsReferenceType); 96695Assert.False(t1.IsReferenceType); 96715Assert.False(t1.IsReferenceType); 96814Assert.True(t1.IsReferenceType); 96821Assert.True(t2.IsReferenceType); 96859Assert.True(t1.IsReferenceType); 96866Assert.True(t2.IsReferenceType); 96898Assert.True(t1.IsReferenceType); 96948Assert.False(at1.IsReferenceType); 96978Assert.False(tf1.IsReferenceType); 97043Assert.True(at1.IsReferenceType); 97071Assert.True(tf1.IsReferenceType); 97131Assert.True(at1.IsReferenceType); 97156Assert.True(tf1.IsReferenceType); 97192Assert.True(t1.IsReferenceType); 97216Assert.True(t1.IsReferenceType); 97241Assert.True(t1.IsReferenceType); 97268Assert.True(t1.IsReferenceType); 97317Assert.True(at1.IsReferenceType); 97342Assert.True(tf1.IsReferenceType); 97399Assert.True(at1.IsReferenceType); 97424Assert.True(tf1.IsReferenceType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\GenericConstraintTests.cs (1)
5726Assert.Equal(typeParameter.IsReferenceType, isReferenceType);