/// <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); }
private void WriteSection(SectionData section, StringBuilder sb) { //Write section Name WriteComments(section.Comments, sb); sb.AppendLine(string.Format("{0}{1}{2}", Configuration.SectionStartChar, section.SectionName, Configuration.SectionEndChar)); WriteKeyValueData(section.Keys, sb); }
/// <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); }