GetKeys() public méthode

public GetKeys ( ) : string[]
Résultat string[]
Exemple #1
0
 private List<string> mergeKeys(string path, List<string> keys)
 {
     var cfg = new Configuration(path, false);
     var configKeys = cfg.GetKeys();
     if (configKeys == null)
         return keys;
     foreach (var key in configKeys) {
         if (!keys.Contains(key))
             keys.Add(key);
     }
     return keys;
 }
 private List<string> mergeKeys(string path, List<string> keys)
 {
     if (path == null)
         return keys;
     var cfgfile = Path.Combine(path, "oi.config");
     var cfg = new Configuration(cfgfile, false);
     Logger.Write("Reading: " + cfg.ConfigurationFile);
     var configKeys = cfg.GetKeys();
     if (configKeys == null)
         return keys;
     foreach (var key in configKeys) {
         if (!keys.Contains(key)) {
             Logger.Write("Adding key: " + key);
             keys.Add(key);
         }
     }
     return keys;
 }