1 ///------------------------------------------------------------------------------
2 /// <copyright file="CLRConfig.cs" company="Microsoft">
3 /// Copyright (c) Microsoft Corporation. All rights reserved.
6 /// <owner>gpaperin</owner>
7 ///------------------------------------------------------------------------------
9 using System.Runtime.CompilerServices;
10 using System.Runtime.Versioning;
11 using System.Runtime.InteropServices;
12 using System.Security;
16 /// For now, this class should be the central point to collect all managed declarations
17 /// of native functions designed to expose config switches.
18 /// In Dev11 M2.2 we will redesign this class to expose CLRConfig from within the CLR
19 /// and refactor managed Fx code to access all compat switches through here.
22 internal class CLRConfig {
25 [System.Security.SecurityCritical]
26 [ResourceExposure(ResourceScope.None)]
27 [SuppressUnmanagedCodeSecurity]
28 internal static bool CheckLegacyManagedDeflateStream()
33 [System.Security.SecurityCritical]
34 [ResourceExposure(ResourceScope.None)]
35 [SuppressUnmanagedCodeSecurity]
36 internal static bool CheckThrowUnobservedTaskExceptions()
41 } // internal class CLRConfig