Merge branch 'master' into config-checks-ipv6
[mono.git] / mcs / class / corlib / ReferenceSources / AppContextDefaultValues.cs
1 using System;
2
3 namespace System
4 {
5         internal static class AppContextDefaultValues
6         {
7                 internal const string SwitchNoAsyncCurrentCulture = "Switch.System.Globalization.NoAsyncCurrentCulture";
8                 internal const string SwitchThrowExceptionIfDisposedCancellationTokenSource = "Switch.System.Threading.ThrowExceptionIfDisposedCancellationTokenSource";
9                 internal const string SwitchPreserveEventListnerObjectIdentity = "Switch.System.Diagnostics.EventSource.PreserveEventListnerObjectIdentity";
10                 internal const string SwitchUseLegacyPathHandling = "Switch.System.IO.UseLegacyPathHandling";
11                 internal const string SwitchBlockLongPaths = "Switch.System.IO.BlockLongPaths";
12                 internal const string SwitchDoNotAddrOfCspParentWindowHandle = "Switch.System.Security.Cryptography.DoNotAddrOfCspParentWindowHandle";
13                 internal const string SwitchSetActorAsReferenceWhenCopyingClaimsIdentity = "Switch.System.Security.ClaimsIdentity.SetActorAsReferenceWhenCopyingClaimsIdentity";
14
15                 public static void PopulateDefaultValues () {
16                 }
17
18                 //TODO Use the values in app.config
19                 public static bool TryGetSwitchOverride (string switchName, out bool overrideValue)
20                 {
21                         // The default value for a switch is 'false'
22                         overrideValue = false;
23
24                         return false;
25                 }
26         }
27 }
28