mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
DISABLE_CAS_USE is required to avoid NotImplementedExceptions in CAS land. MONO_HYBRID_XML is to preserve Mono's XmlSerializer which also allows interpreter-based XML serialization (as opposed to run-time code generation based XML serialization, which is not doable in iOS). Though some Xml.Serialization classes are useful even with mono implementation, so we partially import them (namely schema importer).
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="PrivilegedConfigurationManager.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
#if CONFIGURATION_DEP
|
|
namespace System.Configuration {
|
|
|
|
using System.Collections.Specialized;
|
|
using System.Security;
|
|
using System.Security.Permissions;
|
|
|
|
[ConfigurationPermission(SecurityAction.Assert, Unrestricted=true)]
|
|
internal static class PrivilegedConfigurationManager {
|
|
internal static ConnectionStringSettingsCollection ConnectionStrings {
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
|
get {
|
|
return ConfigurationManager.ConnectionStrings;
|
|
}
|
|
}
|
|
|
|
internal static object GetSection(string sectionName) {
|
|
return ConfigurationManager.GetSection(sectionName);
|
|
}
|
|
}
|
|
}
|
|
#endif
|