diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2016-12-27 16:46:08 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2016-12-27 16:46:08 +0900 |
commit | db20f3f1bb8595633a7e16c8900fd401a453a6b5 (patch) | |
tree | e5435159cd1bf0519276363a6fe1663d1721bed3 /src/mscorlib/src/System/CompatibilitySwitches.cs | |
parent | 4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (diff) | |
download | coreclr-db20f3f1bb8595633a7e16c8900fd401a453a6b5.tar.gz coreclr-db20f3f1bb8595633a7e16c8900fd401a453a6b5.tar.bz2 coreclr-db20f3f1bb8595633a7e16c8900fd401a453a6b5.zip |
Imported Upstream version 1.0.0.9127upstream/1.0.0.9127
Diffstat (limited to 'src/mscorlib/src/System/CompatibilitySwitches.cs')
-rw-r--r-- | src/mscorlib/src/System/CompatibilitySwitches.cs | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/src/mscorlib/src/System/CompatibilitySwitches.cs b/src/mscorlib/src/System/CompatibilitySwitches.cs index 7facf85df3..bb2f02a679 100644 --- a/src/mscorlib/src/System/CompatibilitySwitches.cs +++ b/src/mscorlib/src/System/CompatibilitySwitches.cs @@ -2,8 +2,6 @@ // 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; using System.Runtime.CompilerServices; namespace System @@ -12,16 +10,7 @@ namespace System internal static class CompatibilitySwitches { private static bool s_AreSwitchesSet; - -#if FEATURE_CORECLR private static bool s_useLatestBehaviorWhenTFMNotSpecified; // Which behavior to use when the TFM is not specified. -#endif //FEATURE_CORECLR - -#if !FEATURE_CORECLR - private static bool s_isNetFx40TimeSpanLegacyFormatMode; - private static bool s_isNetFx40LegacySecurityPolicy; - private static bool s_isNetFx45LegacyManagedDeflateStream; -#endif //!FEATURE_CORECLR public static bool IsCompatibilityBehaviorDefined { @@ -39,67 +28,14 @@ namespace System internal static void InitializeSwitches() { -#if FEATURE_CORECLR - s_useLatestBehaviorWhenTFMNotSpecified = IsCompatibilitySwitchSet("UseLatestBehaviorWhenTFMNotSpecified"); -#endif //FEATURE_CORECLR - -#if !FEATURE_CORECLR - s_isNetFx40TimeSpanLegacyFormatMode = IsCompatibilitySwitchSet("NetFx40_TimeSpanLegacyFormatMode"); - s_isNetFx40LegacySecurityPolicy = IsCompatibilitySwitchSet("NetFx40_LegacySecurityPolicy"); - s_isNetFx45LegacyManagedDeflateStream = IsCompatibilitySwitchSet("NetFx45_LegacyManagedDeflateStream"); -#endif //FEATURE_CORECLR - s_AreSwitchesSet = true; } -#if FEATURE_CORECLR - /// <summary> - /// This property returns whether to give the latest behavior when the TFM is missing - /// </summary> - internal static bool UseLatestBehaviorWhenTFMNotSpecified - { - get - { - return s_useLatestBehaviorWhenTFMNotSpecified; - } - } -#else //FEATURE_CORECLR - - public static bool IsAppEarlierThanSilverlight4 - { - get - { - return false; - } - } - - public static bool IsAppEarlierThanWindowsPhone8 - { - get - { - return false; - } - } - - public static bool IsAppEarlierThanWindowsPhoneMango - { - get - { - return false; - } - } - -#endif //FEATURE_CORECLR - public static bool IsNetFx40TimeSpanLegacyFormatMode { get { -#if !FEATURE_CORECLR - return s_isNetFx40TimeSpanLegacyFormatMode; -#else return false; -#endif //!FEATURE_CORECLR } } @@ -107,11 +43,7 @@ namespace System { get { -#if !FEATURE_CORECLR - return s_isNetFx40LegacySecurityPolicy; -#else return false; -#endif //!FEATURE_CORECLR } } @@ -119,11 +51,7 @@ namespace System { get { -#if !FEATURE_CORECLR - return s_isNetFx45LegacyManagedDeflateStream; -#else return false; -#endif //!FEATURE_CORECLR } } } |