Skip to main content

ModifierList.Remove Method

Containing Type: ModifierList

Assembly: Roslynator.CSharp.dll

Overloads​

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

Remove<TNode>(TNode, SyntaxKind)​

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

public static TNode Remove<TNode>(TNode node, Microsoft.CodeAnalysis.CSharp.SyntaxKind kind) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters​

TNode

Parameters​

node   TNode

kind   SyntaxKind

Returns​

TNode

Remove<TNode>(TNode, SyntaxToken)​

Creates a new node with the specified modifier removed.

public static TNode Remove<TNode>(TNode node, Microsoft.CodeAnalysis.SyntaxToken modifier) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters​

TNode

Parameters​

node   TNode

modifier   SyntaxToken

Returns​

TNode