示例#1
0
        public void Dispose()
        {
            _globals.LeaveTemplate();
            _writer.WriteEnd();
            List <Tuple <string, string> > templates = _globals.Templates;

            foreach (Tuple <string, string> item in templates)
            {
                _writer.WriteTemplate(item.Item1, item.Item2);
            }
            templates.Clear();
        }