public Dictionary <string, string> GetConfigSection(string header) { if (!ConfigurationFileSections.ContainsKey(header)) { ConfigurationFileSections.Add(header, new Dictionary <string, string>()); } return(ConfigurationFileSections[header]); }
public void SetConfigSection(Dictionary <string, string> configSection, string header) { if (!ConfigurationFileSections.ContainsKey(header)) { ConfigurationFileSections.Add(header, new Dictionary <string, string>()); } ConfigurationFileSections[header] = configSection; WriteToFile(); }
private bool IsSectionAlreadyAdded() => ConfigurationFileSections.ContainsKey(currentHeader);
private void AddConfigSection() { ConfigurationFileSections.Add(currentHeader, new Dictionary <string, string>()); }