共用方式為


SyntaxGenerator.AddSwitchSections Method

Definition

Adds the switch sections to the statement.

public:
 Microsoft::CodeAnalysis::SyntaxNode ^ AddSwitchSections(Microsoft::CodeAnalysis::SyntaxNode ^ switchStatement, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxNode ^> ^ switchSections);
public Microsoft.CodeAnalysis.SyntaxNode AddSwitchSections (Microsoft.CodeAnalysis.SyntaxNode switchStatement, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> switchSections);
member this.AddSwitchSections : Microsoft.CodeAnalysis.SyntaxNode * seq<Microsoft.CodeAnalysis.SyntaxNode> -> Microsoft.CodeAnalysis.SyntaxNode
Public Function AddSwitchSections (switchStatement As SyntaxNode, switchSections As IEnumerable(Of SyntaxNode)) As SyntaxNode

Parameters

switchStatement
SyntaxNode
switchSections
IEnumerable<SyntaxNode>

Returns

Applies to