13 overrides of IsInterface
Microsoft.CodeAnalysis.CSharp (13)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
166internal sealed override bool IsInterface
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
205internal sealed override bool IsInterface
Symbols\ErrorTypeSymbol.cs (1)
233internal sealed override bool IsInterface
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1808internal sealed override bool IsInterface
Symbols\Source\SourceMemberContainerSymbol.cs (1)
799internal sealed override bool IsInterface
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
188internal override bool IsInterface => false;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
865internal override bool IsInterface => false;
Symbols\Synthesized\SynthesizedContainer.cs (1)
56internal sealed override bool IsInterface => this.TypeKind == TypeKind.Interface;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
133internal override bool IsInterface => false;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
117internal override bool IsInterface => false;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
119internal override bool IsInterface => false;
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
102internal override bool IsInterface => false;
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
119internal override bool IsInterface
92 references to IsInterface
Microsoft.CodeAnalysis.CSharp (92)
Binder\Binder.ValueChecks.cs (2)
3011if (!_underlyingParameter.ContainingType.IsInterface || _type.IsReferenceType) 3041if (!_underlyingParameter.ContainingType.IsInterface || _type.IsReferenceType)
Binder\Binder_Expressions.cs (4)
1920(currentType.IsInterface && (declaringType.IsObjectType() || currentType.AllInterfacesNoUseSiteDiagnostics.Contains(declaringType)))) 2259(currentType.IsInterface && (declaringType.IsObjectType() || currentType.AllInterfacesNoUseSiteDiagnostics.Contains(declaringType)))) 4806containingType.IsInterface); 8693if (symbol.ContainingType?.IsInterface == true)
Binder\Binder_Invocation.cs (1)
1050if (call.ReceiverOpt.Type.IsRestrictedType() && !call.Method.ContainingType.IsInterface && !TypeSymbol.Equals(call.Method.ContainingType, call.ReceiverOpt.Type, TypeCompareKind.ConsiderEverything2))
Binder\Binder_Lookup.cs (4)
1025Debug.Assert(type.IsInterface); 1093if (@interface.IsInterface && !cycleGuard.ContainsReference(originalDefinition = @interface.OriginalDefinition) && visited.Add(@interface)) 1153Debug.Assert(type.IsInterface); 1218return baseType.IsInterface && GetBaseInterfaces(derivedType, basesBeingResolved, ref useSiteInfo).Contains(baseType);
Binder\Binder_Operators.cs (4)
1030Debug.Assert(!(signature.Method?.ContainingType?.IsInterface ?? false)); 1160(t.IsInterface && (signature.Method.IsAbstract || signature.Method.IsVirtual) && 1378if (operatorMethod.ContainingType.IsInterface && 2384if (methodOpt?.ContainingType?.IsInterface == true && methodOpt.IsStatic)
Binder\Semantics\AccessCheck.cs (2)
556bool baseTypeIsInterface = baseType.IsInterface; 607if (!currentBase.IsInterface)
Binder\Semantics\Conversions\ConversionsBase.cs (3)
3003Debug.Assert(targetInterfaceType.IsErrorType() || targetInterfaceType.IsInterface); 3037Debug.Assert(targetInterfaceType.IsErrorType() || targetInterfaceType.IsInterface); 3240IsInterface: true,
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (2)
104if (declaringType.IsInterface) 119if (declaringType.IsInterface)
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (2)
257if (declaringType.IsInterface) 272if (declaringType.IsInterface)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
258if (!@interface.IsInterface)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
437if (!@interface.IsInterface)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (5)
2193if (constructedSource.IsInterface || constructedSource.IsDelegateType()) 2278if (!target.IsInterface) 2593if (constructedTarget.IsInterface || constructedTarget.IsDelegateType()) 2659if (!source.IsInterface) 3129Debug.Assert(target.IsInterface);
Compilation\CSharpCompilation.cs (1)
1946if (mainType is null || mainType.IsGenericType || (mainType.TypeKind != TypeKind.Class && mainType.TypeKind != TypeKind.Struct && !mainType.IsInterface))
Compiler\ClsComplianceChecker.cs (2)
502if ((object)containingType != null && containingType.IsInterface) 518if (symbol.IsInterface)
Emitter\Model\NamedTypeSymbolAdapter.cs (3)
341if (AdaptedNamedTypeSymbol.IsInterface) 378if (AdaptedNamedTypeSymbol.IsInterface) 561return AdaptedNamedTypeSymbol.IsInterface;
Emitter\NoPia\EmbeddedTypesManager.cs (1)
377bool isInterface = (namedType.IsInterface);
FlowAnalysis\NullableWalker.cs (2)
6385if (implementationMethod.ContainingType.IsInterface) 8211if (symbolContainer.IsInterface)
Lowering\DiagnosticsPass_Warnings.cs (1)
357if ((object)nt == null || !nt.IsReferenceType || nt.IsInterface)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
1866Debug.Assert(!meth.ContainingType.IsInterface);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
498if (!receiver.Type.IsReferenceType && method.ContainingType.IsInterface)
Symbols\BaseTypeAnalysis.cs (1)
43if (type.IsInterface)
Symbols\ConstraintsHelper.cs (1)
1066if (typeArgument.Type is NamedTypeSymbol { IsInterface: true } iface && SelfOrBaseHasStaticAbstractMember(iface, ref useSiteInfo, out Symbol member))
Symbols\MemberSymbolExtensions.cs (1)
129Debug.Assert(symbol.ContainingType.IsInterface);
Symbols\Metadata\PE\SymbolFactory.cs (1)
114if (!typeToCheck.IsInterface)
Symbols\MethodSymbolExtensions.cs (1)
220(containingType.IsStructType() == true || (containingType.IsInterface && method.IsImplementable())) &&
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
129if (containingType.IsInterface)
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
327bool isInterface = type.IsInterface; 522!genericType.IsInterface)
Symbols\Source\ModifierUtils.cs (1)
479if (symbol.ContainingType?.IsInterface == true && !symbol.ContainingAssembly.RuntimeSupportsDefaultInterfaceImplementation)
Symbols\Source\SourceConstructorSymbol.cs (1)
135bool isInterface = containingType.IsInterface;
Symbols\Source\SourceDestructorSymbol.cs (1)
133var mods = ModifierUtils.MakeAndCheckNonTypeMemberModifiers(isOrdinaryMethod: false, isForInterfaceMember: containingType.IsInterface, modifiers, DeclarationModifiers.None, allowedModifiers, location, diagnostics, out modifierErrors);
Symbols\Source\SourceEventSymbol.cs (3)
447bool isInterface = this.ContainingType.IsInterface; 527Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 531bool isExplicitInterfaceImplementationInInterface = ContainingType.IsInterface && IsExplicitInterfaceImplementation;
Symbols\Source\SourceMemberContainerSymbol.cs (1)
305if (((NamedTypeSymbol)containingSymbol).IsInterface)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (4)
269wasImplementingMemberFound && implementingMember.ContainingType.IsInterface) 680if (symbol.ContainingType.IsInterface) 1579if (!hidingMember.ContainingType.IsInterface) 1857if (implementingMethod.ContainingType.IsInterface ||
Symbols\Source\SourceMemberFieldSymbol.cs (1)
167bool isInterface = containingType.IsInterface;
Symbols\Source\SourceMemberMethodSymbol.cs (2)
545if (IsExplicitInterfaceImplementation && _containingType.IsInterface) 1096if (_containingType.IsInterface)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
621if (ContainingType.IsInterface || IsExplicitInterfaceImplementation) 1647return this.ContainingType.IsInterface &&
Symbols\Source\SourceOrdinaryMethodSymbol.cs (4)
426return ModifierUtils.MakeAndCheckNonTypeMemberModifiers(isOrdinaryMethod: true, isForInterfaceMember: containingType.IsInterface, 689bool isInterface = containingType.IsInterface; 798Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 800bool isExplicitInterfaceImplementationInInterface = isExplicitInterfaceImplementation && ContainingType.IsInterface;
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
508bool isInterface = containingType.IsInterface;
Symbols\Source\SourcePropertySymbol.cs (1)
368bool isInterface = containingType.IsInterface;
Symbols\Source\SourcePropertySymbolBase.cs (5)
305if (ContainingType.IsInterface && !IsStatic) 907ContainingType.IsInterface && 1059Debug.Assert(!IsStatic || ContainingType.IsInterface || (!IsAbstract && !IsVirtual)); // Otherwise should have been reported and cleared earlier. 1061bool isExplicitInterfaceImplementationInInterface = isExplicitInterfaceImplementation && ContainingType.IsInterface; 1575if (ContainingType.IsInterface || IsExplicitInterfaceImplementation)
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
55if (this.ContainingType.IsInterface &&
Symbols\SymbolExtensions.cs (2)
71if (originalSuperType.IsInterface) 540return !symbol.IsSealed && (symbol.IsAbstract || symbol.IsVirtual) && (symbol.ContainingType?.IsInterface ?? false);
Symbols\TypeSymbol.cs (6)
731if ((object)interfaceType == null || !interfaceType.IsInterface) 810Debug.Assert((object)interfaceType != null && interfaceType.IsInterface); 1092return !symbolAndDiagnostics.Symbol.ContainingType.IsInterface; 1265if (!interfaceType.IsInterface) 1375Debug.Assert(interfaceType.IsInterface); 1559if ((object)implementingPropertyOrEvent != null && !implementingPropertyOrEvent.ContainingType.IsInterface)
Symbols\TypeSymbolExtensions.cs (3)
30if (@interface.IsInterface && TypeSymbol.Equals(@interface, superInterface, TypeCompareKind.ConsiderEverything2)) 329return type.Kind == SymbolKind.NamedType && ((NamedTypeSymbol)type).IsInterface; 2169return type is NamedTypeSymbol { Name: "INumberBase", IsInterface: true, Arity: 1, ContainingType: null } &&
Symbols\VarianceSafety.cs (1)
31Debug.Assert((object)interfaceType != null && interfaceType.IsInterface);
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
123return _underlyingType.IsInterface;