예제 #1
0
        public void FilterNumbers()
        {
            Number = new NumberExpression[Context[IndexList].Count];

            for (int i = Context[IndexList].Count - 1; i >= 0; i--)
            {
                if (Context[IndexList][i] != "+" &&
                    Context[IndexList][i] != "-" &&
                    Context[IndexList][i] != "*" &&
                    Context[IndexList][i] != "/")
                {
                    Number[i]           = i;
                    Number[i].IndexList = IndexList;
                    Number[i].Context   = Context;
                }
            }
        }
예제 #2
0
 public Operations(NumberExpression left, NumberExpression right, Operation mathOp)
 {
     LeftExpression  = left;
     RightExpression = right;
     MathOperation   = mathOp;
 }