Lean  $LEAN_TAG$
QuantConnect.Util.ComparisonOperator Class Reference

Utility Comparison Operator class More...

Static Public Member Functions

static bool Compare< T > (ComparisonOperatorTypes op, T arg1, T arg2)
 Compares two values using given operator More...
 

Detailed Description

Utility Comparison Operator class

Definition at line 23 of file ComparisonOperator.cs.

Member Function Documentation

◆ Compare< T >()

static bool QuantConnect.Util.ComparisonOperator.Compare< T > ( ComparisonOperatorTypes  op,
arg1,
arg2 
)
static

Compares two values using given operator

Template Parameters
T
Parameters
opComparison operator
arg1The first value
arg2The second value
Returns
Returns true if its left-hand operand meets the operator value to its right-hand operand, false otherwise
Type Constraints
T :IComparable 

Definition at line 33 of file ComparisonOperator.cs.


The documentation for this class was generated from the following file: