/* * <summary> * Creates a new instance of <see cref="SectionTreeCollection"/> class. * Which is a tree like structure for handling <see cref="SectionData"/> * </summary> * <param name="data"> * <see cref="SectionData" that you want this tree node to store. * </param> */ public SectionTreeCollection(SectionData data) { _data = data; _nodes = new Dictionary <string, List <SectionTreeCollection> >(); _parent = _root; }
/* * <summary> * Creates a new <see cref = "SectionData" /> which stores information about * a section. * </summary> * <param name = "sectionName" > * Name of the section * </param> * <param name = "level" > * level of the section, how many sections are above this section. * </param> */ public SectionData(SectionData orig) { _sectionName = orig._sectionName; _keys = (KeyDataCollection)orig._keys.Clone(); _level = orig._level; }