/// <summary> /// Initializes a new instance of the <see cref="SectionData"/> class /// from a previous instance of <see cref="SectionData"/>. /// </summary> /// <remarks> /// Data is deeply copied /// </remarks> /// <param name="ori"> /// The instance of the <see cref="SectionData"/> class /// used to create the new instance.</param> public SectionData(SectionData ori) { _comments = new List <string>(ori._comments); _keyDataCollection = new KeyDataCollection(ori._keyDataCollection); }
/// <summary> /// Initializes a new instance of the <see cref="SectionData"/> class. /// </summary> public SectionData(string sectionName) { _comments = new List <string>(); _keyDataCollection = new KeyDataCollection(); SectionName = sectionName; }