示例#1
0
        private EVariable Calc(EVariable a, EVariable b)
        {
            EVariable convA = a;
            EVariable convB = b;

            if (input.HasValue)
            {
                EType inputType = input.Value;
                convA = a.Convert(inputType);
                convB = b.Convert(inputType);
            }

            dynamic convC = calc(convA.Get(), convB.Get());

            return(EVariable.New(output).Set(convC));
        }
示例#2
0
 public override EVariable Solve(EVariable first, EVariable second)
 {
     return(first.Convert(second.GetEType()));
 }