Skip to main content

SymbolExtensions.ImplementsAny Method

Containing Type: SymbolExtensions

Assembly: Roslynator.Core.dll

Overloads​

MethodSummary
ImplementsAny(ITypeSymbol, SpecialType, SpecialType, Boolean)Returns true if the type implements any of specified interfaces.
ImplementsAny(ITypeSymbol, SpecialType, SpecialType, SpecialType, Boolean)Returns true if the type implements any of specified interfaces.

ImplementsAny(ITypeSymbol, SpecialType, SpecialType, Boolean)​

Returns true if the type implements any of specified interfaces.

public static bool ImplementsAny(this Microsoft.CodeAnalysis.ITypeSymbol typeSymbol, Microsoft.CodeAnalysis.SpecialType interfaceType1, Microsoft.CodeAnalysis.SpecialType interfaceType2, bool allInterfaces = false)

Parameters​

typeSymbol   ITypeSymbol

interfaceType1   SpecialType

interfaceType2   SpecialType

allInterfaces   Boolean

If true, use ITypeSymbol.AllInterfaces, otherwise use ITypeSymbol.Interfaces.

Returns​

Boolean

ImplementsAny(ITypeSymbol, SpecialType, SpecialType, SpecialType, Boolean)​

Returns true if the type implements any of specified interfaces.

public static bool ImplementsAny(this Microsoft.CodeAnalysis.ITypeSymbol typeSymbol, Microsoft.CodeAnalysis.SpecialType interfaceType1, Microsoft.CodeAnalysis.SpecialType interfaceType2, Microsoft.CodeAnalysis.SpecialType interfaceType3, bool allInterfaces = false)

Parameters​

typeSymbol   ITypeSymbol

interfaceType1   SpecialType

interfaceType2   SpecialType

interfaceType3   SpecialType

allInterfaces   Boolean

If true, use ITypeSymbol.AllInterfaces, otherwise use ITypeSymbol.Interfaces.

Returns​

Boolean