* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / System.Configuration / Test / standalone / t18.cs
1 using System;
2 using System.Configuration;
3
4 class T1
5 {
6         static void Main(string[] args)
7         {
8                 try
9                 {
10                         Configuration config = ConfigurationManager.OpenExeConfiguration (ConfigurationUserLevel.None);
11                         AppSettingsSection sect = (AppSettingsSection)config.GetSection("appSettings");
12
13                         foreach (string key in sect.Settings.AllKeys) {
14                                 KeyValueConfigurationElement e = sect.Settings[key];
15                                 Console.WriteLine ("{0} = {1}", e.Key, e.Value);
16                         }
17
18                         Console.WriteLine ("lockElements = '{0}'", sect.LockElements.AttributeList);
19                 }
20                 catch (Exception e)
21                 {
22                         Console.WriteLine ("Exception raised: {0}\n{1}", e.GetType(), e);
23                 }
24         }
25 }