mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
* SectionGroupInfo.cs : sections which are defined in sectionGroups could be directly referenced, so search corresponding section recursively. * DefaultSection.cs : It does not reject unrecognized contents. * t33.cs, t33.exe.config, t33.exe.expected, t34.cs, t34.exe.config, t34.exe.expected, Makefile : new tests. svn path=/trunk/mcs/; revision=60042
24 lines
512 B
C#
24 lines
512 B
C#
using System;
|
|
using System.Configuration;
|
|
using System.Reflection;
|
|
using System.Xml;
|
|
|
|
class Test
|
|
{
|
|
public static void Main ()
|
|
{
|
|
try {
|
|
Configuration c = ConfigurationManager.OpenExeConfiguration (
|
|
ConfigurationUserLevel.None);
|
|
|
|
ConfigurationSectionGroup f = c.SectionGroups ["foo"];
|
|
ConfigurationSectionGroup b = f.SectionGroups ["bar"];
|
|
ConfigurationSection s = b.Sections ["mojoEncryption"];
|
|
Console.WriteLine (s.GetType ());
|
|
} catch (Exception e) {
|
|
Console.WriteLine (e);
|
|
}
|
|
}
|
|
}
|
|
|