src/Inflatable/LinqExpression/WhereClauses/UnaryOperator.cs
/// <summary>
/// Optimizes the operator based on the mapping source.
/// </summary>
/// <param name="mappingSource">The mapping source.</param>
/// <returns></returns>
Optimizes the operator based on the mapping source.
Optimizes the operator based on the mapping source .
public IOperator Optimize(IMappingSource mappingSource)
        {
            InternalOperator = InternalOperator.Optimize(mappingSource);
            if (InternalOperator is null)
            {
                return null!;
            }
            return Operator == ExpressionType.Not ? InternalOperator.LogicallyNegate() : (this);
        }
public IOperator Optimize ( IMappingSource mappingSource ) { InternalOperator = InternalOperator . Optimize ( mappingSource ) ; if ( InternalOperator is null ) { return null ! ; } return Operator == ExpressionType . Not ? InternalOperator . LogicallyNegate ( ) : ( this ) ; }
Optimizes the operator based on the mapping source.
Optimizes the operator based on the mapping source .
None
mappingSource
IMappingSource
The mapping source.
The mapping source .