다음을 통해 공유


SyntaxFactory.CollectionExpression 메서드

정의

오버로드

CollectionExpression(SeparatedSyntaxList<CollectionElementSyntax>)

새 CollectionExpressionSyntax instance 만듭니다.

CollectionExpression(SyntaxToken, SeparatedSyntaxList<CollectionElementSyntax>, SyntaxToken)

새 CollectionExpressionSyntax instance 만듭니다.

CollectionExpression(SeparatedSyntaxList<CollectionElementSyntax>)

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

새 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

매개 변수

반환

적용 대상

CollectionExpression(SyntaxToken, SeparatedSyntaxList<CollectionElementSyntax>, SyntaxToken)

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

새 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

매개 변수

openBracketToken
SyntaxToken
closeBracketToken
SyntaxToken

반환

적용 대상