Class NotExpression
- Namespace
- JsonApiDotNetCore.Queries.Expressions
- Assembly
- JsonApiDotNetCore.dll
This expression allows to test for the logical negation of its operand. It represents the "not" filter function, resulting from text such as:
not(equals(title,'Work'))
.
[PublicAPI]
public class NotExpression : FilterExpression
- Inheritance
-
NotExpression
- Inherited Members
Constructors
NotExpression(FilterExpression)
public NotExpression(FilterExpression child)
Parameters
childFilterExpression
Properties
Child
The filter whose value to negate.
public FilterExpression Child { get; }
Property Value
Methods
Accept<TArgument, TResult>(QueryExpressionVisitor<TArgument, TResult>, TArgument)
public override TResult Accept<TArgument, TResult>(QueryExpressionVisitor<TArgument, TResult> visitor, TArgument argument)
Parameters
visitorQueryExpressionVisitor<TArgument, TResult>argumentTArgument
Returns
- TResult
Type Parameters
TArgumentTResult
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToFullString()
public override string ToFullString()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.