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)
3359if (!_underlyingParameter.ContainingType.IsInterface || _type.IsReferenceType) 3391if (!_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)
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); 98614Assert.False(t11.IsReferenceType); 99111Assert.True(t11.IsReferenceType); 100428Assert.False(t1.IsReferenceType); 100466Assert.False(t1.IsReferenceType); 100510Assert.False(t1.IsReferenceType); 100517Assert.False(t2.IsReferenceType); 100549Assert.False(t1.IsReferenceType); 100569Assert.False(t1.IsReferenceType); 100668Assert.True(t1.IsReferenceType); 100675Assert.True(t2.IsReferenceType); 100713Assert.True(t1.IsReferenceType); 100720Assert.True(t2.IsReferenceType); 100752Assert.True(t1.IsReferenceType); 100802Assert.False(at1.IsReferenceType); 100832Assert.False(tf1.IsReferenceType); 100897Assert.True(at1.IsReferenceType); 100925Assert.True(tf1.IsReferenceType); 100985Assert.True(at1.IsReferenceType); 101010Assert.True(tf1.IsReferenceType); 101046Assert.True(t1.IsReferenceType); 101070Assert.True(t1.IsReferenceType); 101095Assert.True(t1.IsReferenceType); 101122Assert.True(t1.IsReferenceType); 101171Assert.True(at1.IsReferenceType); 101196Assert.True(tf1.IsReferenceType); 101253Assert.True(at1.IsReferenceType); 101278Assert.True(tf1.IsReferenceType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\GenericConstraintTests.cs (1)
5764Assert.Equal(typeParameter.IsReferenceType, isReferenceType);