共用方式為


SyntaxFactory.CollectionExpression 方法

定義

多載

CollectionExpression(SeparatedSyntaxList<CollectionElementSyntax>)

建立新的 CollectionExpressionSyntax 實例。

CollectionExpression(SyntaxToken, SeparatedSyntaxList<CollectionElementSyntax>, SyntaxToken)

建立新的 CollectionExpressionSyntax 實例。

CollectionExpression(SeparatedSyntaxList<CollectionElementSyntax>)

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

建立新的 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

參數

傳回

適用於

CollectionExpression(SyntaxToken, SeparatedSyntaxList<CollectionElementSyntax>, SyntaxToken)

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

建立新的 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

參數

openBracketToken
SyntaxToken
closeBracketToken
SyntaxToken

傳回

適用於