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; } } }
public Operations(NumberExpression left, NumberExpression right, Operation mathOp) { LeftExpression = left; RightExpression = right; MathOperation = mathOp; }