Skip to main content

ModifierList.RemoveAll Method

Containing Type: ModifierList<TNode>

Assembly: Roslynator.CSharp.dll

Overloads​

MethodSummary
RemoveAll(TNode, Func<SyntaxToken, Boolean>)Creates a new node with modifiers that matches the predicate removed.
RemoveAll(TNode)Creates a new node with all modifiers removed.

RemoveAll(TNode, Func<SyntaxToken, Boolean>)​

Creates a new node with modifiers that matches the predicate removed.

public TNode RemoveAll(TNode node, Func<Microsoft.CodeAnalysis.SyntaxToken, bool> predicate)

Parameters​

node   TNode

predicate   Func<SyntaxToken, Boolean>

Returns​

TNode

RemoveAll(TNode)​

Creates a new node with all modifiers removed.

public TNode RemoveAll(TNode node)

Parameters​

node   TNode

Returns​

TNode