예제 #1
0
 public bool SetKeyValue(string sSection, string sKey, string sValue)
 {
     if (!DOM.ContainsKey(sSection))
     {
         DOM.Add(sSection, new Dictionary <string, string>());
         DOM[sSection].Add(sKey, sValue);
         return(true);
     }
     else
     {
         if (!DOM[sSection].ContainsKey(sKey))
         {
             DOM[sSection].Add(sKey, sValue);
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }