SyntaxFactory.CollectionExpression Method

Definition

Overloads

CollectionExpression(SeparatedSyntaxList<CollectionElementSyntax>)

Creates a new CollectionExpressionSyntax instance.

CollectionExpression(SyntaxToken, SeparatedSyntaxList<CollectionElementSyntax>, SyntaxToken)

Creates a new CollectionExpressionSyntax instance.

CollectionExpression(SeparatedSyntaxList<CollectionElementSyntax>)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Creates a new CollectionExpressionSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.CollectionExpressionSyntax CollectionExpression (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CollectionElementSyntax> elements = default);
static member CollectionExpression : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CollectionElementSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.CollectionExpressionSyntax
Public Shared Function CollectionExpression (Optional elements As SeparatedSyntaxList(Of CollectionElementSyntax) = Nothing) As CollectionExpressionSyntax

Parameters

Returns

Applies to

CollectionExpression(SyntaxToken, SeparatedSyntaxList<CollectionElementSyntax>, SyntaxToken)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Creates a new CollectionExpressionSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.CollectionExpressionSyntax CollectionExpression (Microsoft.CodeAnalysis.SyntaxToken openBracketToken, Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CollectionElementSyntax> elements, Microsoft.CodeAnalysis.SyntaxToken closeBracketToken);
static member CollectionExpression : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CollectionElementSyntax> * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.CollectionExpressionSyntax
Public Shared Function CollectionExpression (openBracketToken As SyntaxToken, elements As SeparatedSyntaxList(Of CollectionElementSyntax), closeBracketToken As SyntaxToken) As CollectionExpressionSyntax

Parameters

openBracketToken
SyntaxToken
closeBracketToken
SyntaxToken

Returns

Applies to