CSharpFactory.SwitchSection Method
Containing Type: CSharpFactory
Assembly: Roslynator.CSharp.dll
Overloads
Method | Summary |
---|---|
SwitchSection(SwitchLabelSyntax, StatementSyntax) | |
SwitchSection(SwitchLabelSyntax, SyntaxList<StatementSyntax>) | |
SwitchSection(SyntaxList<SwitchLabelSyntax>, StatementSyntax) |
SwitchSection(SwitchLabelSyntax, StatementSyntax)
public static Microsoft.CodeAnalysis.CSharp.Syntax.SwitchSectionSyntax SwitchSection(Microsoft.CodeAnalysis.CSharp.Syntax.SwitchLabelSyntax switchLabel, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement)
Parameters
switchLabel SwitchLabelSyntax
statement StatementSyntax
Returns
SwitchSection(SwitchLabelSyntax, SyntaxList<StatementSyntax>)
public static Microsoft.CodeAnalysis.CSharp.Syntax.SwitchSectionSyntax SwitchSection(Microsoft.CodeAnalysis.CSharp.Syntax.SwitchLabelSyntax switchLabel, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements)
Parameters
switchLabel SwitchLabelSyntax
statements SyntaxList<StatementSyntax>
Returns
SwitchSection(SyntaxList<SwitchLabelSyntax>, StatementSyntax)
public static Microsoft.CodeAnalysis.CSharp.Syntax.SwitchSectionSyntax SwitchSection(Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.SwitchLabelSyntax> switchLabels, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement)
Parameters
switchLabels SyntaxList<SwitchLabelSyntax>
statement StatementSyntax