public static string ToStr(this MeasureOperator op) { switch (op) { case MeasureOperator.GreaterOrEqual: return("≥"); case MeasureOperator.Greater: return(">"); case MeasureOperator.Equal: return("="); case MeasureOperator.Less: return("<"); case MeasureOperator.LessOrEqual: return("≤"); case MeasureOperator.Between: return("—"); default: return(op.ToString()); } }
public static MeasureOp ToMeasureOp(this Measure m, MeasureOperator op = MeasureOperator.GreaterOrEqual) { Contract.Requires(m != null); return(new MeasureOp(op, m.Value, m.Uom, m.Word)); }
public MeasureOp(MeasureOperator op, double value, Uom uom = null, Word word = null) : base(value, uom, word) { Operator = op; }
public static bool IsBinary(this MeasureOperator op) { return(op == MeasureOperator.Between); }