コード例 #1
0
ファイル: Context.cs プロジェクト: yorek/dotliquid
        /// <summary>
        /// Pop from the stack. use <tt>Context#stack</tt> instead
        /// </summary>
        public Hash Pop()
        {
            if (Scopes.Count == 1)
            {
                throw new ContextException();
            }
            Hash result = Scopes[0];

            Scopes.RemoveAt(0);
            return(result);
        }