mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
26 lines
652 B
C#
26 lines
652 B
C#
using System;
|
|
using System.Configuration;
|
|
|
|
class T1
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
try
|
|
{
|
|
Configuration config = ConfigurationManager.OpenExeConfiguration (ConfigurationUserLevel.None);
|
|
AppSettingsSection sect = (AppSettingsSection)config.GetSection("appSettings");
|
|
|
|
foreach (string key in sect.Settings.AllKeys) {
|
|
KeyValueConfigurationElement e = sect.Settings[key];
|
|
Console.WriteLine ("{0} = {1}", e.Key, e.Value);
|
|
}
|
|
|
|
Console.WriteLine ("lockAllAttributesExcept = '{0}'", sect.LockAllAttributesExcept.AttributeList);
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
Console.WriteLine ("Exception raised: {0}", e.GetType());
|
|
}
|
|
}
|
|
}
|