SyntaxFactory.SwitchSection 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
SwitchSection() |
Creates a new SwitchSectionSyntax instance. |
SwitchSection(SyntaxList<SwitchLabelSyntax>, SyntaxList<StatementSyntax>) |
Creates a new SwitchSectionSyntax instance. |
SwitchSection()
- 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
- 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
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
Creates a new SwitchSectionSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::SwitchSectionSyntax ^ SwitchSection();
public static Microsoft.CodeAnalysis.CSharp.Syntax.SwitchSectionSyntax SwitchSection ();
static member SwitchSection : unit -> Microsoft.CodeAnalysis.CSharp.Syntax.SwitchSectionSyntax
Public Shared Function SwitchSection () As SwitchSectionSyntax
Returns
Applies to
SwitchSection(SyntaxList<SwitchLabelSyntax>, SyntaxList<StatementSyntax>)
- 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
- 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
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
Creates a new SwitchSectionSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::SwitchSectionSyntax ^ SwitchSection(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::SwitchLabelSyntax ^> labels, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::StatementSyntax ^> statements);
public static Microsoft.CodeAnalysis.CSharp.Syntax.SwitchSectionSyntax SwitchSection (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.SwitchLabelSyntax> labels, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements);
static member SwitchSection : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.SwitchLabelSyntax> * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.SwitchSectionSyntax
Public Shared Function SwitchSection (labels As SyntaxList(Of SwitchLabelSyntax), statements As SyntaxList(Of StatementSyntax)) As SwitchSectionSyntax
Parameters
- labels
- SyntaxList<SwitchLabelSyntax>
- statements
- SyntaxList<StatementSyntax>
Returns
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.