SyntaxLogicalInverter.LogicallyInvert Method
Containing Type: SyntaxLogicalInverter
Assembly: Roslynator.CSharp.Workspaces.dll
Overloads
| Method | Summary |
|---|---|
| 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
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