SyntaxFactory.ListPattern 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ListPattern(SeparatedSyntaxList<PatternSyntax>) |
创建新的 ListPatternSyntax 实例。 |
ListPattern(SeparatedSyntaxList<PatternSyntax>, VariableDesignationSyntax) |
创建新的 ListPatternSyntax 实例。 |
ListPattern(SyntaxToken, SeparatedSyntaxList<PatternSyntax>, SyntaxToken, VariableDesignationSyntax) |
创建新的 ListPatternSyntax 实例。 |
ListPattern(SeparatedSyntaxList<PatternSyntax>)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
创建新的 ListPatternSyntax 实例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.ListPatternSyntax ListPattern (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.PatternSyntax> patterns = default);
static member ListPattern : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.PatternSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.ListPatternSyntax
Public Shared Function ListPattern (Optional patterns As SeparatedSyntaxList(Of PatternSyntax) = Nothing) As ListPatternSyntax
参数
- patterns
- SeparatedSyntaxList<PatternSyntax>
返回
适用于
ListPattern(SeparatedSyntaxList<PatternSyntax>, VariableDesignationSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
创建新的 ListPatternSyntax 实例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.ListPatternSyntax ListPattern (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.PatternSyntax> patterns, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDesignationSyntax? designation);
static member ListPattern : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.PatternSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDesignationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ListPatternSyntax
Public Shared Function ListPattern (patterns As SeparatedSyntaxList(Of PatternSyntax), designation As VariableDesignationSyntax) As ListPatternSyntax
参数
- patterns
- SeparatedSyntaxList<PatternSyntax>
- designation
- VariableDesignationSyntax
返回
适用于
ListPattern(SyntaxToken, SeparatedSyntaxList<PatternSyntax>, SyntaxToken, VariableDesignationSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
创建新的 ListPatternSyntax 实例。
public static Microsoft.CodeAnalysis.CSharp.Syntax.ListPatternSyntax ListPattern (Microsoft.CodeAnalysis.SyntaxToken openBracketToken, Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.PatternSyntax> patterns, Microsoft.CodeAnalysis.SyntaxToken closeBracketToken, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDesignationSyntax? designation);
static member ListPattern : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.PatternSyntax> * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDesignationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ListPatternSyntax
Public Shared Function ListPattern (openBracketToken As SyntaxToken, patterns As SeparatedSyntaxList(Of PatternSyntax), closeBracketToken As SyntaxToken, designation As VariableDesignationSyntax) As ListPatternSyntax
参数
- openBracketToken
- SyntaxToken
- patterns
- SeparatedSyntaxList<PatternSyntax>
- closeBracketToken
- SyntaxToken
- designation
- VariableDesignationSyntax