コード例 #1
0
 private void State_34()
 {
     if (ActionStack.Last() != ActionStack.WrongLexem)
     {
         Action returnState = ActionStack.Pop();
         returnState();
     }
 }
コード例 #2
0
ファイル: ActionStack.cs プロジェクト: abodnyaUA/Translator
        public static Action Pop()
        {
            Action returnValue = ActionStack.Last();

            if (returnValue != ActionStack.WrongLexem)
            {
                _stack.RemoveAt(_stack.Count - 1);
            }
            return(returnValue);
        }