Skip to main content

ModifierList.RemoveAll Method

Containing Type: ModifierList

Assembly: Roslynator.CSharp.dll

Overloads​

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

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

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

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

Type Parameters​

TNode

Parameters​

node   TNode

predicate   Func<SyntaxToken, Boolean>

Returns​

TNode

RemoveAll<TNode>(TNode)​

Creates a new node with all modifiers removed.

public static TNode RemoveAll<TNode>(TNode node) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters​

TNode

Parameters​

node   TNode

Returns​

TNode