Exemplo n.º 1
0
 /// <summary>
 /// Add key value with option of overwriting value of existing key
 /// or adding to a list of values associated w/ the same key.
 /// </summary>
 /// <param name="key"></param>
 /// <param name="val"></param>
 /// <param name="overWrite"></param>
 public virtual void AddMulti(string key, object val, bool overWrite)
 {
     ConfigSectionUtils.Add(this, key, val, overWrite);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Add the key value to the section specified.
 /// </summary>
 /// <param name="sectionName"></param>
 /// <param name="key"></param>
 /// <param name="val"></param>
 /// <param name="overWrite"></param>
 public virtual void Add(string sectionName, string key, object val, bool overWrite)
 {
     ConfigSectionUtils.Add(this, sectionName, key, val, overWrite);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Add the key value to the section specified.
 /// </summary>
 /// <param name="sectionName"></param>
 /// <param name="key"></param>
 /// <param name="val"></param>
 public virtual void Add(string sectionName, string key, object val)
 {
     ConfigSectionUtils.Add(this, sectionName, key, val, false);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Get a section associated with the specified key at the specified index.
 /// </summary>
 /// <param name="sectionName"></param>
 /// <param name="ndx"></param>
 /// <returns></returns>
 public IConfigSection GetSection(string sectionName, int ndx)
 {
     return(ConfigSectionUtils.Get <IConfigSection>(this, sectionName, ndx));
 }