17 references to IsClassType
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Operators.cs (2)
3465
if (operandType.IsValueType && targetType.
IsClassType
() && targetType.SpecialType != SpecialType.System_Enum ||
3466
targetType.IsValueType && operandType.
IsClassType
() && operandType.SpecialType != SpecialType.System_Enum)
Binder\Semantics\Conversions\ConversionsBase.cs (6)
955
if (!baseType.
IsClassType
())
2505
if (destination.
IsClassType
() && IsBaseClass(source, destination, ref useSiteInfo))
2546
if (source.
IsClassType
())
3248
if (destination.
IsClassType
() && IsBaseClass(destination, source, ref useSiteInfo))
3256
if (source.
IsClassType
() && destination.IsInterfaceType() && !source.IsSealed && !HasAnyBaseInterfaceConversion(source, destination, ref useSiteInfo))
3264
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 (4)
1091
if (!member.ContainingType.
IsClassType
())
1315
else if (currentType.
IsClassType
() && type.
IsClassType
() && currentType.IsDerivedFrom(type, TypeCompareKind.ConsiderEverything, useSiteInfo: ref useSiteInfo))
1368
if (type.
IsClassType
() && type.GetSpecialTypeSafe() != SpecialType.System_Object)
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1303
if (method.ContainingType.
IsClassType
())
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
102
Debug.Assert(!this.
IsClassType
() || localBase.IsObjectType() || baseLocation != null);
123
if (this.
IsClassType
() && !localBase.IsObjectType() && !baseContainsErrorTypes)
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
564
if (different.
IsClassType
() && !same.IsTypeParameter())