mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
22 lines
477 B
C#
22 lines
477 B
C#
using System;
|
|
using System.Collections.Specialized;
|
|
using System.Configuration;
|
|
using System.Xml;
|
|
|
|
class T1
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
try {
|
|
System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration (ConfigurationUserLevel.None);
|
|
|
|
ConfigurationSection connStrings = config.ConnectionStrings;
|
|
|
|
connStrings.SectionInformation.ProtectSection ("FooProvider");
|
|
}
|
|
catch (Exception e) {
|
|
Console.WriteLine (e.Message);
|
|
}
|
|
}
|
|
}
|