Skip to main content

SymbolExtensions.EqualsOrInheritsFrom Method

Containing Type: SymbolExtensions

Assembly: Roslynator.Core.dll

Overloads​

MethodSummary
EqualsOrInheritsFrom(ITypeSymbol, ITypeSymbol, Boolean)Returns true if the type is equal or inherits from a specified base type.
EqualsOrInheritsFrom(ITypeSymbol, MetadataName, Boolean)Returns true if the type is equal or inherits from a type with the specified name.

EqualsOrInheritsFrom(ITypeSymbol, ITypeSymbol, Boolean)​

Returns true if the type is equal or inherits from a specified base type.

public static bool EqualsOrInheritsFrom(this Microsoft.CodeAnalysis.ITypeSymbol type, Microsoft.CodeAnalysis.ITypeSymbol baseType, bool includeInterfaces = false)

Parameters​

type   ITypeSymbol

baseType   ITypeSymbol

includeInterfaces   Boolean

Returns​

Boolean

EqualsOrInheritsFrom(ITypeSymbol, MetadataName, Boolean)​

Returns true if the type is equal or inherits from a type with the specified name.

public static bool EqualsOrInheritsFrom(this Microsoft.CodeAnalysis.ITypeSymbol type, in Roslynator.MetadataName baseTypeName, bool includeInterfaces = false)

Parameters​

type   ITypeSymbol

baseTypeName   MetadataName

includeInterfaces   Boolean

Returns​

Boolean