Share via


SyntaxFactory.List Method

Definition

Overloads

List<TNode>()

Creates an empty list of syntax nodes.

List<TNode>(IEnumerable<TNode>)

Creates a list of syntax nodes.

List<TNode>()

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

Creates an empty list of syntax nodes.

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode static Microsoft::CodeAnalysis::SyntaxList<TNode> List();
public static Microsoft.CodeAnalysis.SyntaxList<TNode> List<TNode> () where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member List : unit -> Microsoft.CodeAnalysis.SyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Public Shared Function List(Of TNode As SyntaxNode) () As SyntaxList(Of TNode)

Type Parameters

TNode

The specific type of the element nodes.

Returns

Applies to

List<TNode>(IEnumerable<TNode>)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

Creates a list of syntax nodes.

public:
generic <typename TNode>
 where TNode : Microsoft::CodeAnalysis::SyntaxNode static Microsoft::CodeAnalysis::SyntaxList<TNode> List(System::Collections::Generic::IEnumerable<TNode> ^ nodes);
public static Microsoft.CodeAnalysis.SyntaxList<TNode> List<TNode> (System.Collections.Generic.IEnumerable<TNode> nodes) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member List : seq<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> -> Microsoft.CodeAnalysis.SyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
Public Shared Function List(Of TNode As SyntaxNode) (nodes As IEnumerable(Of TNode)) As SyntaxList(Of TNode)

Type Parameters

TNode

The specific type of the element nodes.

Parameters

nodes
IEnumerable<TNode>

A sequence of element nodes.

Returns

Applies to