3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 using System.Runtime.CompilerServices;
11 internal static class LocalAppContextSwitches
13 private static int _dontThrowOnInvalidSurrogatePairs;
14 public static bool DontThrowOnInvalidSurrogatePairs
16 [MethodImpl(MethodImplOptions.AggressiveInlining)]
19 return LocalAppContext.GetCachedSwitchValue(@"Switch.System.Xml.DontThrowOnInvalidSurrogatePairs", ref _dontThrowOnInvalidSurrogatePairs);
23 private static int _ignoreEmptyKeySequences;
24 public static bool IgnoreEmptyKeySequences
26 [MethodImpl(MethodImplOptions.AggressiveInlining)]
29 return LocalAppContext.GetCachedSwitchValue(@"Switch.System.Xml.IgnoreEmptyKeySequences", ref _ignoreEmptyKeySequences);