[bcl] Updates referencesource to 4.7.1
[mono-project.git] / mcs / class / referencesource / System.Xml / System / Xml / Core / LocalAppContextSwitches.cs
blob79f7073b0031f3cafdef59a87e1d37d910290245
1 // ==++==
2 //
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 //
5 // ==--==
6 using System;
7 using System.Runtime.CompilerServices;
9 namespace System
11 internal static class LocalAppContextSwitches
13 private static int _dontThrowOnInvalidSurrogatePairs;
14 public static bool DontThrowOnInvalidSurrogatePairs
16 [MethodImpl(MethodImplOptions.AggressiveInlining)]
17 get
19 return LocalAppContext.GetCachedSwitchValue(@"Switch.System.Xml.DontThrowOnInvalidSurrogatePairs", ref _dontThrowOnInvalidSurrogatePairs);
23 private static int _ignoreEmptyKeySequences;
24 public static bool IgnoreEmptyKeySequences
26 [MethodImpl(MethodImplOptions.AggressiveInlining)]
27 get
29 return LocalAppContext.GetCachedSwitchValue(@"Switch.System.Xml.IgnoreEmptyKeySequences", ref _ignoreEmptyKeySequences);
33 private static int _ignoreKindInUtcTimeSerialization;
34 public static bool IgnoreKindInUtcTimeSerialization
36 [MethodImpl(MethodImplOptions.AggressiveInlining)]
37 get
39 return LocalAppContext.GetCachedSwitchValue(@"Switch.System.Xml.IgnoreKindInUtcTimeSerialization", ref _ignoreKindInUtcTimeSerialization);
43 private static int _enableTimeSpanSerialization;
45 public static bool EnableTimeSpanSerialization
47 [MethodImpl(MethodImplOptions.AggressiveInlining)]
48 get
50 return LocalAppContext.GetCachedSwitchValue(@"Switch.System.Xml.EnableTimeSpanSerialization", ref _enableTimeSpanSerialization);