Skip to main content

SymbolExtensions.IsKind Method

Containing Type: SymbolExtensions

Assembly: Roslynator.Core.dll

Overloads

MethodSummary
IsKind(ISymbol, SymbolKind, SymbolKind, SymbolKind, SymbolKind, SymbolKind)Returns true if the symbol is one of the specified kinds.
IsKind(ISymbol, SymbolKind, SymbolKind, SymbolKind, SymbolKind)Returns true if the symbol is one of the specified kinds.
IsKind(ISymbol, SymbolKind, SymbolKind, SymbolKind)Returns true if the symbol is one of the specified kinds.
IsKind(ISymbol, SymbolKind, SymbolKind)Returns true if the symbol is one of the specified kinds.
IsKind(ISymbol, SymbolKind)Returns true if the symbol is the specified kind.

IsKind(ISymbol, SymbolKind, SymbolKind, SymbolKind, SymbolKind, SymbolKind)

Returns true if the symbol is one of the specified kinds.

public static bool IsKind(this Microsoft.CodeAnalysis.ISymbol? symbol, Microsoft.CodeAnalysis.SymbolKind kind1, Microsoft.CodeAnalysis.SymbolKind kind2, Microsoft.CodeAnalysis.SymbolKind kind3, Microsoft.CodeAnalysis.SymbolKind kind4, Microsoft.CodeAnalysis.SymbolKind kind5)

Parameters

symbol ISymbol

kind1 SymbolKind

kind2 SymbolKind

kind3 SymbolKind

kind4 SymbolKind

kind5 SymbolKind

Returns

Boolean

IsKind(ISymbol, SymbolKind, SymbolKind, SymbolKind, SymbolKind)

Returns true if the symbol is one of the specified kinds.

public static bool IsKind(this Microsoft.CodeAnalysis.ISymbol? symbol, Microsoft.CodeAnalysis.SymbolKind kind1, Microsoft.CodeAnalysis.SymbolKind kind2, Microsoft.CodeAnalysis.SymbolKind kind3, Microsoft.CodeAnalysis.SymbolKind kind4)

Parameters

symbol ISymbol

kind1 SymbolKind

kind2 SymbolKind

kind3 SymbolKind

kind4 SymbolKind

Returns

Boolean

IsKind(ISymbol, SymbolKind, SymbolKind, SymbolKind)

Returns true if the symbol is one of the specified kinds.

public static bool IsKind(this Microsoft.CodeAnalysis.ISymbol? symbol, Microsoft.CodeAnalysis.SymbolKind kind1, Microsoft.CodeAnalysis.SymbolKind kind2, Microsoft.CodeAnalysis.SymbolKind kind3)

Parameters

symbol ISymbol

kind1 SymbolKind

kind2 SymbolKind

kind3 SymbolKind

Returns

Boolean

IsKind(ISymbol, SymbolKind, SymbolKind)

Returns true if the symbol is one of the specified kinds.

public static bool IsKind(this Microsoft.CodeAnalysis.ISymbol? symbol, Microsoft.CodeAnalysis.SymbolKind kind1, Microsoft.CodeAnalysis.SymbolKind kind2)

Parameters

symbol ISymbol

kind1 SymbolKind

kind2 SymbolKind

Returns

Boolean

IsKind(ISymbol, SymbolKind)

Returns true if the symbol is the specified kind.

public static bool IsKind(this Microsoft.CodeAnalysis.ISymbol? symbol, Microsoft.CodeAnalysis.SymbolKind kind)

Parameters

symbol ISymbol

kind SymbolKind

Returns

Boolean