public override object Operation(IEnumerable <object> values)
        {
            var valueList = values.ToList();
            var result    = OperatorUtility.Add(valueList[0], valueList[1]);

            for (int i = 2; i < valueList.Count; i++)
            {
                result = OperatorUtility.Add(result, valueList[i]);
            }

            return(result);
        }
Beispiel #2
0
 protected override bool GenericComparison(object a, object b)
 {
     return(OperatorUtility.Equal(a, b));
 }
 public override object Operation(object a, object b)
 {
     return(OperatorUtility.Add(a, b));
 }
 private bool NotEqual(Flow flow)
 {
     return(OperatorUtility.NotEqual(flow.GetValue(a), flow.GetValue(b)));
 }
 private bool GenericGreater(object a, object b)
 {
     return(OperatorUtility.GreaterThan(a, b));
 }
 private bool GenericNotEqual(object a, object b)
 {
     return(OperatorUtility.NotEqual(a, b));
 }
 private bool GenericLessOrEqual(object a, object b)
 {
     return(OperatorUtility.LessThanOrEqual(a, b));
 }