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