Skip to main content

CSharpFactory.SwitchSection Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
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

SwitchSectionSyntax

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

SwitchSectionSyntax

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

Returns

SwitchSectionSyntax