Ejemplo n.º 1
0
 private static void AddNumberToQueue(string number)
 {
     if (!CheckForFails.isEmpty(number))
     {
         result.Enqueue(CreateCalcObject("Number", number));
     }
 }
Ejemplo n.º 2
0
 private static bool IsDigit(char previous, char current, int i)
 {
     if (Char.IsDigit(current) || current == ',' || (current == '-' && (i == 0 || (i > 0 && (previous == '(' || CheckForFails.isEmpty(previous.ToString()))))))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }