Partager via


SyntaxFactory.CollectionExpression Méthode

Définition

Surcharges

CollectionExpression(SeparatedSyntaxList<CollectionElementSyntax>)

Crée un instance CollectionExpressionSyntax.

CollectionExpression(SyntaxToken, SeparatedSyntaxList<CollectionElementSyntax>, SyntaxToken)

Crée un instance CollectionExpressionSyntax.

CollectionExpression(SeparatedSyntaxList<CollectionElementSyntax>)

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

Crée un instance CollectionExpressionSyntax.

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

Paramètres

Retours

S’applique à

CollectionExpression(SyntaxToken, SeparatedSyntaxList<CollectionElementSyntax>, SyntaxToken)

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

Crée un instance CollectionExpressionSyntax.

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

Paramètres

openBracketToken
SyntaxToken
closeBracketToken
SyntaxToken

Retours

S’applique à