Class P
A P is a predicate of the form Func<object, bool>. That is, given some object, return true or false.
public class P : IPredicate
- Inheritance
-
P
- Implements
- Derived
- Inherited Members
Constructors
P(string, dynamic?, P?)
Initializes a new instance of the P class.
public P(string operatorName, dynamic? value, P? other = null)
Parameters
operatorName
stringThe name of the predicate.
value
dynamicThe value of the predicate.
other
PAn optional other predicate that is used as an argument for this predicate.
Properties
OperatorName
Gets the name of the predicate.
public string OperatorName { get; }
Property Value
Other
Gets an optional other predicate that is used as an argument for this predicate.
public P? Other { get; }
Property Value
Value
Gets the value of the predicate.
public dynamic? Value { get; }
Property Value
- dynamic
Methods
And(P)
Returns a composed predicate that represents a logical AND of this predicate and another.
public P And(P otherPredicate)
Parameters
otherPredicate
PA predicate that will be logically-ANDed with this predicate.
Returns
- P
The composed predicate.
Between(params object[]?)
public static P Between(params object[]? args)
Parameters
args
object[]
Returns
Eq(params object[]?)
public static P Eq(params object[]? args)
Parameters
args
object[]
Returns
Gt(params object[]?)
public static P Gt(params object[]? args)
Parameters
args
object[]
Returns
Gte(params object[]?)
public static P Gte(params object[]? args)
Parameters
args
object[]
Returns
Inside(params object[]?)
public static P Inside(params object[]? args)
Parameters
args
object[]
Returns
Lt(params object[]?)
public static P Lt(params object[]? args)
Parameters
args
object[]
Returns
Lte(params object[]?)
public static P Lte(params object[]? args)
Parameters
args
object[]
Returns
Neq(params object[]?)
public static P Neq(params object[]? args)
Parameters
args
object[]
Returns
Not(params object[]?)
public static P Not(params object[]? args)
Parameters
args
object[]
Returns
Or(P)
Returns a composed predicate that represents a logical OR of this predicate and another.
public P Or(P otherPredicate)
Parameters
otherPredicate
PA predicate that will be logically-ORed with this predicate.
Returns
- P
The composed predicate.
Outside(params object[]?)
public static P Outside(params object[]? args)
Parameters
args
object[]
Returns
Test(params object[]?)
public static P Test(params object[]? args)
Parameters
args
object[]
Returns
ToString()
public override string ToString()
Returns
Within(params object[]?)
public static P Within(params object[]? args)
Parameters
args
object[]
Returns
Without(params object[]?)
public static P Without(params object[]? args)
Parameters
args
object[]