Skip to main content

SyntaxLogicalInverter.LogicallyInvert Method

Containing Type: SyntaxLogicalInverter

Assembly: Roslynator.CSharp.Workspaces.dll

Overloads​

MethodSummary
LogicallyInvert(ExpressionSyntax, CancellationToken)Returns new expression that represents logical inversion of the specified expression.
LogicallyInvert(ExpressionSyntax, SemanticModel, CancellationToken)Returns new expression that represents logical inversion of the specified expression.

LogicallyInvert(ExpressionSyntax, CancellationToken)​

Returns new expression that represents logical inversion of the specified expression.

public Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax LogicallyInvert(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, System.Threading.CancellationToken cancellationToken = default)

Parameters​

expression   ExpressionSyntax

cancellationToken   CancellationToken

Returns​

ExpressionSyntax

LogicallyInvert(ExpressionSyntax, SemanticModel, CancellationToken)​

Returns new expression that represents logical inversion of the specified expression.

public Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax LogicallyInvert(Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.SemanticModel? semanticModel, System.Threading.CancellationToken cancellationToken = default)

Parameters​

expression   ExpressionSyntax

semanticModel   SemanticModel

cancellationToken   CancellationToken

Returns​

ExpressionSyntax