there is a class for getting settings
public class DbConfig { public class DbConf { public string Server; public string Port; } public List<DbConf> GetDbConf() { try { list.Add(new DbConf { Server = "34", Port = "34" }); }; return list; } catch (Exception msg) { logger.Debug(msg); return null; } } } how can i get data except
foreach (var c in DbConfig.GetDbConf()) { Console.WriteLine("{0} {1}", c.Server, c.Port); }