Пример #1
0
        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);
        }
Пример #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)));
 }
Пример #5
0
 private bool GenericGreater(object a, object b)
 {
     return(OperatorUtility.GreaterThan(a, b));
 }
Пример #6
0
 private bool GenericNotEqual(object a, object b)
 {
     return(OperatorUtility.NotEqual(a, b));
 }
Пример #7
0
 private bool GenericLessOrEqual(object a, object b)
 {
     return(OperatorUtility.LessThanOrEqual(a, b));
 }