private static void PopulateDefaultValuesPartial(string platformIdentifier, string profile, int version) { if (!(platformIdentifier == ".NETCore") && !(platformIdentifier == ".NETFramework")) { if ((platformIdentifier == "WindowsPhone" || platformIdentifier == "WindowsPhoneApp") && version <= 80100) { AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchNoAsyncCurrentCulture, true); AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchThrowExceptionIfDisposedCancellationTokenSource, true); } } else if (version <= 40502) { AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchNoAsyncCurrentCulture, true); AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchThrowExceptionIfDisposedCancellationTokenSource, true); } AppContextDefaultValues.PopulateOverrideValuesPartial(); }
// Token: 0x0600020E RID: 526 RVA: 0x000056CC File Offset: 0x000038CC private static void PopulateDefaultValuesPartial(string platformIdentifier, string profile, int version) { if (!(platformIdentifier == ".NETCore") && !(platformIdentifier == ".NETFramework")) { if (platformIdentifier == "WindowsPhone" || platformIdentifier == "WindowsPhoneApp") { if (version <= 80100) { AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchNoAsyncCurrentCulture, true); AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchThrowExceptionIfDisposedCancellationTokenSource, true); AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchUseLegacyPathHandling, true); AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchBlockLongPaths, true); AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchDoNotAddrOfCspParentWindowHandle, true); AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchIgnorePortablePDBsInStackTraces, true); } } } else { if (version <= 40502) { AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchNoAsyncCurrentCulture, true); AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchThrowExceptionIfDisposedCancellationTokenSource, true); } if (version <= 40601) { AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchUseLegacyPathHandling, true); AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchBlockLongPaths, true); AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchSetActorAsReferenceWhenCopyingClaimsIdentity, true); } if (version <= 40602) { AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchDoNotAddrOfCspParentWindowHandle, true); } if (version <= 40701) { AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchIgnorePortablePDBsInStackTraces, true); } if (version <= 40702) { AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchCryptographyUseLegacyFipsThrow, true); AppContext.DefineSwitchDefault(AppContextDefaultValues.SwitchDoNotMarshalOutByrefSafeArrayOnInvoke, true); } } AppContextDefaultValues.PopulateOverrideValuesPartial(); }