Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public LegacyNeedsConfig(NewConfigClass config)
 {
     this.ConfigurableSetting = config.MyConfigParameter;
 }