SyntaxFactory.ListPattern Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ListPattern(SeparatedSyntaxList<PatternSyntax>) |
Creates a new ListPatternSyntax instance. |
ListPattern(SeparatedSyntaxList<PatternSyntax>, VariableDesignationSyntax) |
Creates a new ListPatternSyntax instance. |
ListPattern(SyntaxToken, SeparatedSyntaxList<PatternSyntax>, SyntaxToken, VariableDesignationSyntax) |
Creates a new ListPatternSyntax instance. |
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
Creates a new ListPatternSyntax instance.
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
Parameters
- patterns
- SeparatedSyntaxList<PatternSyntax>
Returns
Applies to
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
Creates a new ListPatternSyntax instance.
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
Parameters
- patterns
- SeparatedSyntaxList<PatternSyntax>
- designation
- VariableDesignationSyntax
Returns
Applies to
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
Creates a new ListPatternSyntax instance.
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
Parameters
- openBracketToken
- SyntaxToken
- patterns
- SeparatedSyntaxList<PatternSyntax>
- closeBracketToken
- SyntaxToken
- designation
- VariableDesignationSyntax
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.