public void Set(string comment) { var name = "#comment" + commentCount; var item = new IniItem(name, null, IniType.Empty, comment); configList.Add(name, item); commentCount++; }
public string GetValue(string key) { string result = null; if (Contains(key)) { IniItem item = (IniItem)configList[key]; result = item.Value; } return(result); }
public void Set(string key, string value, string comment = null) { IniItem item = null; if(Contains(key)) { item = (IniItem)configList[key]; item.Value = value; item.Comment = comment; } else { item = new IniItem(key, value, IniType.Key, comment); configList.Add(key, item); } }
public void Set(string key, string value, string comment = null) { IniItem item = null; if (Contains(key)) { item = (IniItem)configList[key]; item.Value = value; item.Comment = comment; } else { item = new IniItem(key, value, IniType.Key, comment); configList.Add(key, item); } }
public void Set(string comment) { var name = "#comment" + commentCount; var item = new IniItem(name, null, IniType.Empty, comment); configList.Add(name, item); commentCount++; }