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