blob: bb2f02a679913a4206e30850e8205738ae2d4f62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.CompilerServices;
namespace System
{
[FriendAccessAllowed]
internal static class CompatibilitySwitches
{
private static bool s_AreSwitchesSet;
private static bool s_useLatestBehaviorWhenTFMNotSpecified; // Which behavior to use when the TFM is not specified.
public static bool IsCompatibilityBehaviorDefined
{
get
{
return s_AreSwitchesSet;
}
}
private static bool IsCompatibilitySwitchSet(string compatibilitySwitch)
{
bool? result = AppDomain.CurrentDomain.IsCompatibilitySwitchSet(compatibilitySwitch);
return (result.HasValue && result.Value);
}
internal static void InitializeSwitches()
{
s_AreSwitchesSet = true;
}
public static bool IsNetFx40TimeSpanLegacyFormatMode
{
get
{
return false;
}
}
public static bool IsNetFx40LegacySecurityPolicy
{
get
{
return false;
}
}
public static bool IsNetFx45LegacyManagedDeflateStream
{
get
{
return false;
}
}
}
}
|