SyntaxExtensions.IsTopmostIf(IfStatementSyntax) Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.CSharp.dll
Returns true if the specified if statement is not a child of an else clause.
public static bool IsTopmostIf(this Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax ifStatement)
Parameters
ifStatement IfStatementSyntax