Skip to main content
A newer version of this page is available. .

BinaryOperator Members

The operator that manipulates with two operands to calculate a result.

Constructors

Name Description
BinaryOperator() Initializes a new BinaryOperator instance with the default settings.
BinaryOperator(CriteriaOperator, CriteriaOperator, BinaryOperatorType) Initializes a new BinaryOperator with the given operator type, and criteria that specify expressions to manipulate.
BinaryOperator(String, Boolean, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, Boolean) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, Byte, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, Byte) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, Byte[], BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, Byte[]) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, Char, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, Char) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, DateTime, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property with whose value the operator acts, the second value to manipulate, and the operator type.
BinaryOperator(String, DateTime) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, Decimal, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, Decimal) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, Double, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, Double) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, Guid, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, Guid) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, Int16, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, Int16) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, Int32, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, Int32) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, Int64, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, Int64) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, Object, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, Object) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, Single, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, Single) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, String, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, String) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.
BinaryOperator(String, TimeSpan, BinaryOperatorType) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value using the given operator type.
BinaryOperator(String, TimeSpan) Initializes a new BinaryOperator with the specified name of a property whose value the operator compares with the passed value.

Fields

Name Description
LeftOperand The left operand.
OperatorType The type of an operator the instance uses to calculate boolean result.
RightOperand The right operand.

Properties

Name Description
CustomFunctionCount static Returns the number of registered custom functions. Inherited from CriteriaOperator.

Methods

Name Description
Accept(ICriteriaVisitor) For internal use only. Accepts the specified visitor.
Accept<T>(ICriteriaVisitor<T>) For internal use only. Accepts the specified visitor.
And(CriteriaOperator, CriteriaOperator) static Initializes a new CriteriaOperator that groups specified criteria via the logical AND operator. Inherited from CriteriaOperator.
And(CriteriaOperator[]) static Initializes a new CriteriaOperator that groups specified criteria via the logical AND operator. Inherited from CriteriaOperator.
And(IEnumerable<CriteriaOperator>) static Initializes a new CriteriaOperator that groups specified criteria via the logical AND operator. Inherited from CriteriaOperator.
Clone() Initializes a new BinaryOperator instance that is a copy of the current instance.
Clone(CriteriaOperator) static Initializes a new CriteriaOperator instance that is a copy of the specified instance instance. Inherited from CriteriaOperator.
Clone(OperandProperty) static Initializes a new OperandProperty instance that is a copy of the specified instance instance. Inherited from CriteriaOperator.
CriterionEquals(CriteriaOperator, CriteriaOperator) static Determines whether the specified CriteriaOperators are equal. Inherited from CriteriaOperator.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current BinaryOperator instance.
GetCustomFunction(String) static Returns a registered custom function with the specified name. Inherited from CriteriaOperator.
GetCustomFunctions() static Returns all registered custom functions. Inherited from CriteriaOperator.
GetHashCode() Serves as the default hash function.
GetType() Gets the Type of the current instance. Inherited from Object.
IsNotNull() Initializes a new UnaryOperator instance that checks whether the current criterion is not null. Inherited from CriteriaOperator.
IsNull() Initializes a new UnaryOperator instance that checks whether the current criterion is null. Inherited from CriteriaOperator.
LegacyToString() Converts the current expression into its string equivalent and removes value suffixes (like 'm', 'M', 'l', 'L', etc.) Inherited from CriteriaOperator.
LegacyToString(CriteriaOperator) static Converts the specified expression into its string equivalent and removes value suffixes (like 'm', 'M', 'l', 'L', etc.) Inherited from CriteriaOperator.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
Not() Initializes a new UnaryOperator instance that applies the logical NOT operator to the current criterion. Inherited from CriteriaOperator.
Or(CriteriaOperator, CriteriaOperator) static Initializes a new CriteriaOperator that groups specified criteria via the logical OR operator. Inherited from CriteriaOperator.
Or(CriteriaOperator[]) static Initializes a new CriteriaOperator that groups specified criteria via the logical OR operator. Inherited from CriteriaOperator.
Or(IEnumerable<CriteriaOperator>) static Initializes a new CriteriaOperator that groups specified criteria via the logical OR operator. Inherited from CriteriaOperator.
Parse(String, out OperandValue[]) static Converts the specified string into its CriteriaOperator equivalent. Throws an exception if it cannot convert the string to a criterion. Inherited from CriteriaOperator.
Parse(String, Object[]) static Converts the specified string into its CriteriaOperator equivalent. Throws an exception if it cannot convert the string to a criterion. Inherited from CriteriaOperator.
ParseList(String, out OperandValue[]) static Converts the specified string into its CriteriaOperators equivalent. Expressions should be divided by a semicolon (';'). Throws an exception if it cannot convert the string to criteria. Inherited from CriteriaOperator.
ParseList(String, Object[]) static Converts the specified string into its CriteriaOperators equivalent. Expressions should be divided by a semicolon (';'). Throws an exception if it cannot convert the string to criteria. Inherited from CriteriaOperator.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RegisterCustomFunction(ICustomFunctionOperator) static Registers the specified custom function. Inherited from CriteriaOperator.
RegisterCustomFunctions(IEnumerable<ICustomFunctionOperator>) static Registers the specified custom functions. Inherited from CriteriaOperator.
ToBasicStyleString(CriteriaOperator, out OperandValue[]) static Converts the specified expression into its VB-style string equivalent. Inherited from CriteriaOperator.
ToBasicStyleString(CriteriaOperator) static Converts the specified expression into its VB-style string equivalent. Inherited from CriteriaOperator.
ToCStyleString(CriteriaOperator, out OperandValue[]) static Converts the specified expression into its C#-style string equivalent. Inherited from CriteriaOperator.
ToCStyleString(CriteriaOperator) static Converts the specified expression into its C#-style string equivalent. Inherited from CriteriaOperator.
ToString() Converts the current expression into its VB-style string equivalent. Inherited from CriteriaOperator.
ToString(CriteriaOperator, out OperandValue[]) static Converts the specified expression into its VB-style string equivalent. Inherited from CriteriaOperator.
ToString(CriteriaOperator) static Converts the specified expression into its VB-style string equivalent. Inherited from CriteriaOperator.
TryParse(String, Object[]) static Converts the specified string into its CriteriaOperator equivalent. Returns null if cannot convert the string to a criterion. Inherited from CriteriaOperator.
UnregisterCustomFunction(ICustomFunctionOperator) static Cancels registration of the specified custom function. Inherited from CriteriaOperator.
UnregisterCustomFunction(String) static Cancels registration of a custom function with the specified name. Inherited from CriteriaOperator.

Events

Name Description
UserValueParse static Occurs when a criteria operator parses a serialized user object. Inherited from CriteriaOperator.
UserValueToString static Occurs when a criteria operator serializes a user object. Inherited from CriteriaOperator.
See Also