Files
mono/mcs/class/System.Configuration/Test/standalone/t34.cs
T
Atsushi Eno 0f29606011 2006-04-28 Atsushi Enomoto <[email protected]>
* 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
2006-04-28 16:20:54 +00:00

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);
}
}
}