Skip to main content

SyntaxExtensions.ToSyntaxList<TNode>(IEnumerable<TNode>) Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

Creates a list of syntax nodes from a sequence of nodes.

public static Microsoft.CodeAnalysis.SyntaxList<TNode> ToSyntaxList<TNode>(this System.Collections.Generic.IEnumerable<TNode> nodes) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters​

TNode

Parameters​

nodes   IEnumerable<TNode>

Returns​

SyntaxList<TNode>