Beispiel #1
0
 public sKey Key(Setting incKey)
 {
     IniFile.IniSection.IniKey key = section.GetKey(incKey.ToString());
     if (key == null)
     {
         if (defaultSets.ContainsKey(incKey))
         {
             key       = section.AddKey(incKey.ToString());
             key.Value = defaultSets[incKey];
         }
     }
     if (key != null)
     {
         if (key.Value == null)
         {
             if (defaultSets.ContainsKey(incKey))
             {
                 key.Value = defaultSets[incKey];
             }
         }
     }
     return(new sKey(key, defaultSets[incKey]));
 }
Beispiel #2
0
 //protected internal sKey(IniFile.IniSection.IniKey inc_key)
 //{
 //    key = inc_key;
 //}
 protected internal sKey(IniFile.IniSection.IniKey inc_key, string _defaultValue)
 {
     key          = inc_key;
     defaultValue = _defaultValue;
 }
Beispiel #3
0
 protected internal sKey(IniFile.IniSection.IniKey inc_key)
 {
     key = inc_key;
 }