/// <summary>Crates a IniFileSectionStart object from name of a section.</summary> /// <param name="sectionName">Name of a section</param> public static IniFileSectionStart FromName(string sectionName) { IniFileSectionStart ret = new IniFileSectionStart(); ret.SectionName = sectionName; ret.FormatDefault(); return(ret); }
/// <summary>Creates a new IniFileSectionStart object basing on a name of section and the formatting style of this section.</summary> /// <param name="sectName">Name of the new section</param> public IniFileSectionStart CreateNew(string sectName) { IniFileSectionStart ret = new IniFileSectionStart(); ret.sectionName = sectName; if (IniFileSettings.PreserveFormatting) { ret.formatting = formatting; ret.Format(); } else { ret.Format(); } return(ret); }