private void ReadFromAppSettings() { foreach (var property in _metaData) { string value = ConfigurationManager.AppSettings[property.Key]; if (!string.IsNullOrEmpty(value)) property.Value.Value = value; } }
public static Config Load() { var config = new Config(); config.ReadFromAppSettings(); config.ReadFromIniFiles(); if (WindowsUtils.IsWindowsNT) { config.ReadFromRegistry(); } return(config); }