16 references to IsClassType
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Operators.cs (2)
3515
if (operandType.IsValueType && targetType.
IsClassType
() && targetType.SpecialType != SpecialType.System_Enum ||
3516
targetType.IsValueType && operandType.
IsClassType
() && operandType.SpecialType != SpecialType.System_Enum)
Binder\Semantics\Conversions\ConversionsBase.cs (6)
991
if (!baseType.
IsClassType
())
2654
if (destination.
IsClassType
() && IsBaseClass(source, destination, ref useSiteInfo))
2695
if (source.
IsClassType
())
3477
if (destination.
IsClassType
() && IsBaseClass(destination, source, ref useSiteInfo))
3485
if (source.
IsClassType
() && destination.IsInterfaceType() && !source.IsSealed && !HasAnyBaseInterfaceConversion(source, destination, ref useSiteInfo))
3493
if (source.IsInterfaceType() && destination.
IsClassType
() && (!destination.IsSealed || HasAnyBaseInterfaceConversion(destination, source, ref useSiteInfo)))
Binder\Semantics\Conversions\UserDefinedConversions.cs (1)
116
if (type.
IsClassType
() || type.IsStructType())
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
1409
if (!member.ContainingType.
IsClassType
())
1638
else if (currentType.IsClassType() && type.
IsClassType
() && currentType.IsDerivedFrom(type, TypeCompareKind.ConsiderEverything, useSiteInfo: ref useSiteInfo))
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1348
if (method.ContainingType.
IsClassType
())
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
103
Debug.Assert(!this.
IsClassType
() || localBase.IsObjectType() || baseLocation != null);
124
if (this.
IsClassType
() && !localBase.IsObjectType() && !baseContainsErrorTypes)
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
567
if (different.
IsClassType
() && !same.IsTypeParameter())
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
17
Debug.Assert(containingType.
IsClassType
());