Exemplo n.º 1
0
 protected override Result DoEval(Evaluator evaluater, Result[] argArray)
 {
     return(new Result(typeof(int), Convert.ToInt32(argArray[0].Value) | Convert.ToInt32(argArray[1].Value)));
 }
Exemplo n.º 2
0
 protected override Result DoEval(Evaluator evaluater, Result[] argArray)
 {
     return(new Result(typeof(bool), ((bool)argArray[0].Value) || ((bool)argArray[1].Value)));
 }