SyntaxGenerator.GetSwitchSections(SyntaxNode) 方法

定义

获取语句的 switch 节的列表。

public:
 abstract System::Collections::Generic::IReadOnlyList<Microsoft::CodeAnalysis::SyntaxNode ^> ^ GetSwitchSections(Microsoft::CodeAnalysis::SyntaxNode ^ switchStatement);
public abstract System.Collections.Generic.IReadOnlyList<Microsoft.CodeAnalysis.SyntaxNode> GetSwitchSections (Microsoft.CodeAnalysis.SyntaxNode switchStatement);
abstract member GetSwitchSections : Microsoft.CodeAnalysis.SyntaxNode -> System.Collections.Generic.IReadOnlyList<Microsoft.CodeAnalysis.SyntaxNode>
Public MustOverride Function GetSwitchSections (switchStatement As SyntaxNode) As IReadOnlyList(Of SyntaxNode)

参数

switchStatement
SyntaxNode

返回

适用于