StatementListInfo.ParentAsSwitchSection Property
Containing Type: StatementListInfo
Assembly: Roslynator.CSharp.dll
Gets a switch section that contains the statements. Returns null if the statements are not contained in a switch section.
public Microsoft.CodeAnalysis.CSharp.Syntax.SwitchSectionSyntax? ParentAsSwitchSection { get; }