public void Reset() { CurrentCollectionItem = RootItem; RootItem.ChildItems.Clear(); RootItem.CollectionType = 0; GlobalItemStateStack.Clear(); GlobalItemStateStack.Add(new Dictionary <GlobalItemTag, EncodedItem>()); LocalItemState.Clear(); }
/// <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; }