static void Main(string[] args) { NewConfigClass config = new NewConfigClass(); config.MyConfigParameter = "hello world"; //read from web or app config LegacyNeedsConfig legacy = new LegacyNeedsConfig(config); Console.WriteLine(legacy.ConfigurableSetting); }
public LegacyNeedsConfig(NewConfigClass config) { this.ConfigurableSetting = config.MyConfigParameter; }