SyntaxExtensions.IsSimpleIf(IfStatementSyntax) Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.CSharp.dll
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.
public static bool IsSimpleIf(this Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax ifStatement)
Parameters
ifStatement IfStatementSyntax