Aracılığıyla paylaş


CSharpExtensions Class

Definition

public ref class CSharpExtensions abstract sealed
public static class CSharpExtensions
type CSharpExtensions = class
Public Module CSharpExtensions
Inheritance
CSharpExtensions

Methods

Any(SyntaxTokenList, SyntaxKind)

Tests whether a list contains a token of a particular kind.

Any(SyntaxTriviaList, SyntaxKind)

True if the list has at least one trivia of the specified kind.

Any<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind)

True if the list has at least one node of the specified kind.

Any<TNode>(SyntaxList<TNode>, SyntaxKind)

True if the list has at least one node of the specified kind.

ContainsDirective(SyntaxNode, SyntaxKind)

Returns true if this node contains any directives (e.g. #if, #nullable, etc.) within it with a matching kind.

IndexOf(SyntaxTokenList, SyntaxKind)

Returns the index of the first token of a specified kind in the token list.

IndexOf(SyntaxTriviaList, SyntaxKind)

Returns the index of the first trivia of a specified kind in the trivia list.

IndexOf<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind)

Returns the index of the first node of a specified kind in the node list.

IndexOf<TNode>(SyntaxList<TNode>, SyntaxKind)

Returns the index of the first node of a specified kind in the node list.

IsKind(SyntaxNode, SyntaxKind)

Determines if SyntaxNode is of a specified kind.

IsKind(SyntaxNodeOrToken, SyntaxKind)

Determines if SyntaxNodeOrToken is of a specified kind.

IsKind(SyntaxToken, SyntaxKind)

Determines if SyntaxToken is of a specified kind.

IsKind(SyntaxTrivia, SyntaxKind)

Determines if SyntaxTrivia is of a specified kind.

Applies to