Moving BSTR conv to native code in SecureStringToBSTR.
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / Core / LocalAppContextSwitches.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 using System;
7 using System.Runtime.CompilerServices;
8
9 namespace System
10 {
11     internal static class LocalAppContextSwitches
12     {
13         private static int _dontThrowOnInvalidSurrogatePairs;
14         public static bool DontThrowOnInvalidSurrogatePairs
15         {
16             [MethodImpl(MethodImplOptions.AggressiveInlining)]
17             get
18             {
19                 return LocalAppContext.GetCachedSwitchValue(@"Switch.System.Xml.DontThrowOnInvalidSurrogatePairs", ref _dontThrowOnInvalidSurrogatePairs);
20             }
21         }
22
23         private static int _ignoreEmptyKeySequences;
24         public static bool IgnoreEmptyKeySequences
25         {
26             [MethodImpl(MethodImplOptions.AggressiveInlining)]
27             get
28             {
29                 return LocalAppContext.GetCachedSwitchValue(@"Switch.System.Xml.IgnoreEmptyKeySequences", ref _ignoreEmptyKeySequences);
30             }
31         }
32     }
33 }