Get() public méthode

public Get ( string setting ) : ConfigurationSetting
setting string
Résultat ConfigurationSetting
Exemple #1
0
 private string valueFromConfig(string path, string name)
 {
     var cfg = new Configuration(path, false);
     var setting = cfg.Get(name);
     if (setting == null)
         return null;
     return setting.Value;
 }
 private string valueFromConfig(string path, string name)
 {
     if (path == null)
         return null;
     var cfgfile = Path.Combine(path, "oi.config");
     var cfg = new Configuration(cfgfile, false);
     var setting = cfg.Get(name);
     if (setting == null)
         return null;
     return setting.Value;
 }