예제 #1
0
        public bool MovePostfixUp()
        {
            if (Postfix.Count == 0)
            {
                return(false);
            }

            var temp = Postfix[0];

            Postfix.RemoveAt(0);

            OldString.Add(temp);
            return(true);
        }
예제 #2
0
        public void MovePostfixUp()
        {
            if (Postfix.Count == 0)
            {
                return;
            }

            var temp = Postfix[0];

            Postfix.RemoveAt(0);
            Notify("Postfix");

            OldString.Add(temp);
            Notify("OldString");
        }