コード例 #1
0
        public void Reset()
        {
            CurrentCollectionItem = RootItem;
            RootItem.ChildItems.Clear();
            RootItem.CollectionType = 0;

            GlobalItemStateStack.Clear();
            GlobalItemStateStack.Add(new Dictionary <GlobalItemTag, EncodedItem>());
            LocalItemState.Clear();
        }
コード例 #2
0
        /// <summary>
        /// Resets the parser to its initial state.
        /// </summary>
        public void Clear()
        {
            CurrentCollection = RootCollection;
            RootCollection.Clear();

            GlobalItemStateStack.Clear();
            GlobalItemStateStack.Add(new Dictionary <GlobalItemTag, EncodedItem> ());
            LocalItemState.Clear();
            Reports.Clear();
            ReportsUseID = false;
        }