public override string ToString() { string result = "[" + SectionName; if (!SubSection.IsNullOrEmpty()) { var escSubSection = SubSection.Replace("\"", "\\\""); escSubSection = escSubSection.Replace("\\", "\\\\"); if (!SubSectionCaseSensitive) { escSubSection = escSubSection.ToLower(); } result = result + " \"" + escSubSection + "\""; } result = result + "]"; return(result); }
public override string ToString() { string result = "[" + SectionName; if (!SubSection.IsNullOrEmpty()) { if (SubSectionCaseSensitive) { result = result + " \"" + SubSection + "\""; } else { result = result + "." + SubSection; } } result = result + "]"; return(result); }