Skip to main content

ModifierList.Remove Method

Containing Type: ModifierList<TNode>

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
Remove(TNode, SyntaxKind)Creates a new node with a modifier of the specified kind removed.
Remove(TNode, SyntaxToken)Creates a new node with the specified modifier removed.

Remove(TNode, SyntaxKind)

Creates a new node with a modifier of the specified kind removed.

public TNode Remove(TNode node, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind)

Parameters

node TNode

kind SyntaxKind

Returns

TNode

Remove(TNode, SyntaxToken)

Creates a new node with the specified modifier removed.

public TNode Remove(TNode node, Microsoft.CodeAnalysis.SyntaxToken modifier)

Parameters

node TNode

modifier SyntaxToken

Returns

TNode