2 using System.Collections.Generic;
3 using System.Collections.Specialized;
5 using System.Configuration;
10 static void Main(string[] args)
14 Configuration config = ConfigurationManager.OpenExeConfiguration (ConfigurationUserLevel.None);
16 AppSettingsSection appSettings = (AppSettingsSection) config.GetSection ("appSettings");
17 Console.Write ("appSettings is " + (appSettings == null ? "null" : "not null"));
19 Console.Write (" , ");
21 AppSettingsSection AppSettings = (AppSettingsSection) config.GetSection ("AppSettings");
22 Console.Write ("AppSettings is " + (AppSettings == null ? "null" : "not null"));
29 Console.WriteLine(e.ToString());