Table of Contents

Class ComparisonCondition

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll

Represents one ternary condition.

public class ComparisonCondition : Freezable
Inheritance
ComparisonCondition
Inherited Members
Extension Methods

Fields

LeftOperandProperty

public static readonly DependencyProperty LeftOperandProperty

Field Value

DependencyProperty

OperatorProperty

public static readonly DependencyProperty OperatorProperty

Field Value

DependencyProperty

RightOperandProperty

public static readonly DependencyProperty RightOperandProperty

Field Value

DependencyProperty

Properties

LeftOperand

Gets or sets the left operand.

public object LeftOperand { get; set; }

Property Value

object

Operator

Gets or sets the comparison operator.

public ComparisonConditionType Operator { get; set; }

Property Value

ComparisonConditionType

RightOperand

Gets or sets the right operand.

public object RightOperand { get; set; }

Property Value

object

Methods

CreateInstanceCore()

When implemented in a derived class, creates a new instance of the Freezable derived class.

protected override Freezable CreateInstanceCore()

Returns

Freezable

The new instance.

Evaluate()

Method that evaluates the condition. Note that this method can throw ArgumentException if the operator is incompatible with the type. For instance, operators LessThan, LessThanOrEqual, GreaterThan, and GreaterThanOrEqual require both operators to implement IComparable.

public bool Evaluate()

Returns

bool

Returns true if the condition has been met; otherwise, returns false.