示例#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]));
 }
示例#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;
 }
示例#3
0
 protected internal sKey(IniFile.IniSection.IniKey inc_key)
 {
     key = inc_key;
 }