Skip to main content

IfStatementSyntax Class Extensions

Extension MethodSummary
AsCascade(IfStatementSyntax)Returns IfStatementCascade that enables to enumerate if-else cascade.
GetCascadeInfo(IfStatementSyntax)Returns IfStatementCascadeInfo that summarizes information about if-else cascade.
GetTopmostIf(IfStatementSyntax)Returns topmost if statement of the if-else cascade the specified if statement is part of.
IsSimpleIf(IfStatementSyntax)Returns true if the specified if statement is a simple if statement. Simple if statement is defined as follows: it is not a child of an else clause and it has no else clause.
IsTopmostIf(IfStatementSyntax)Returns true if the specified if statement is not a child of an else clause.