mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
* ConfigurationSectionCollection.cs, ConfigurationSectionGroupCollection.cs, PropertyInformationCollection.cs, SectionGroupInfo.cs: these collections should be based on case insensitive NameObjectCollectionBase * added OrdinalComparer.cs for use in NameObjectCollectionBase * t44.cs: added test for case sensitivity check svn path=/trunk/mcs/; revision=74361
33 lines
803 B
C#
33 lines
803 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Specialized;
|
|
using System.Text;
|
|
using System.Configuration;
|
|
using System.Web;
|
|
|
|
class T1
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
try
|
|
{
|
|
Configuration config = ConfigurationManager.OpenExeConfiguration (ConfigurationUserLevel.None);
|
|
|
|
AppSettingsSection appSettings = (AppSettingsSection) config.GetSection ("appSettings");
|
|
Console.Write ("appSettings is " + (appSettings == null ? "null" : "not null"));
|
|
|
|
Console.Write (" , ");
|
|
|
|
AppSettingsSection AppSettings = (AppSettingsSection) config.GetSection ("AppSettings");
|
|
Console.Write ("AppSettings is " + (AppSettings == null ? "null" : "not null"));
|
|
|
|
Console.WriteLine ();
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
// Error.
|
|
Console.WriteLine(e.ToString());
|
|
}
|
|
}
|
|
}
|