56 references to AppContextSwitches
mscorlib (56)
system\diagnostics\eventing\eventsource.cs (1)
2040if (AppContextSwitches.PreserveEventListnerObjectIdentity)
system\globalization\culturedata.cs (1)
2781if (calendarId == Calendar.CAL_JAPAN && !AppContextSwitches.EnforceLegacyJapaneseDateParsing)
system\globalization\datetimeformat.cs (1)
608!AppContextSwitches.FormatJapaneseFirstYearAsANumber &&
system\globalization\datetimeformatinfo.cs (2)
2465if (!AppContextSwitches.EnforceLegacyJapaneseDateParsing && Calendar.ID == Calendar.CAL_JAPAN) 2754if (!AppContextSwitches.EnforceLegacyJapaneseDateParsing && Calendar.ID == Calendar.CAL_JAPAN &&
system\globalization\datetimeparse.cs (1)
3503if (AppContextSwitches.EnforceLegacyJapaneseDateParsing || dtfi.Calendar.ID != Calendar.CAL_JAPAN || !str.GetNext())
system\globalization\gregoriancalendarhelper.cs (1)
178else if (!AppContextSwitches.EnforceJapaneseEraYearRanges)
system\io\directory.cs (1)
1096string currentDirectory = AppContextSwitches.UseLegacyPathHandling ? LegacyGetCurrentDirectory() : NewGetCurrentDirectory();
system\io\filestream.cs (2)
713: AppContextSwitches.BlockLongPaths ? PathInternal.MaxShortPath : PathInternal.MaxLongPath; 725(!CodeAccessSecurityEngine.QuickCheckForAllDemands() || AppContextSwitches.UseLegacyPathHandling)
system\io\path.cs (8)
173string normalizedPath = NormalizePath(path, fullCheck: false, expandShortPaths: AppContextSwitches.UseLegacyPathHandling); 248if (AppContextSwitches.UseLegacyPathHandling) 376return NormalizePath(path, fullCheck, AppContextSwitches.BlockLongPaths ? PathInternal.MaxShortPath : PathInternal.MaxLongPath); 399if (AppContextSwitches.UseLegacyPathHandling) 938if (AppContextSwitches.UseLegacyPathHandling) 946if (AppContextSwitches.UseLegacyPathHandling) 964if (AppContextSwitches.UseLegacyPathHandling) 982if (AppContextSwitches.UseLegacyPathHandling)
system\io\pathinternal.cs (7)
52bool isExtended = !AppContextSwitches.UseLegacyPathHandling && IsExtended(path); 106if (AppContextSwitches.BlockLongPaths) 109if (AppContextSwitches.UseLegacyPathHandling || !IsExtended(fullPath)) 145if (AppContextSwitches.BlockLongPaths) 148if (AppContextSwitches.UseLegacyPathHandling || !IsExtended(fullPath)) 330if (!AppContextSwitches.UseLegacyPathHandling && IsDevice(path)) 353int startIndex = AppContextSwitches.UseLegacyPathHandling ? 0 : IsDevice(path) ? ExtendedPathPrefix.Length : 0;
system\Runtime\InteropServices\Variant.cs (1)
156if (!AppContextSwitches.DoNotMarshalOutByrefSafeArrayOnInvoke && (vt & VarEnum.VT_ARRAY) != 0)
system\runtime\serialization\formatters\binary\binaryformatter.cs (1)
241if (AppContextSwitches.UseConcurrentFormatterTypeCache)
system\runtime\serialization\objectidgenerator.cs (1)
159int[] arr = AppContextSwitches.UseNewMaxArraySize ? sizesWithMaxArraySwitch : sizes;
system\runtime\serialization\objectmanager.cs (1)
71if (!isCrossAppDomain && AppContextSwitches.UseNewMaxArraySize)
system\security\claims\ClaimsIdentity.cs (2)
318if (!AppContextSwitches.SetActorAsReferenceWhenCopyingClaimsIdentity) 608if (!AppContextSwitches.SetActorAsReferenceWhenCopyingClaimsIdentity)
system\security\cryptography\md5cryptoserviceprovider.cs (1)
30if (CryptoConfig.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
system\security\cryptography\rc2cryptoserviceprovider.cs (1)
39if (CryptoConfig.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
system\security\cryptography\rijndaelmanaged.cs (1)
28if (CryptoConfig.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
system\security\cryptography\ripemd160managed.cs (1)
40if (CryptoConfig.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
system\security\cryptography\sha1managed.cs (1)
42if (CryptoConfig.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
system\security\cryptography\sha256managed.cs (1)
44if (CryptoConfig.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
system\security\cryptography\sha384managed.cs (1)
42if (CryptoConfig.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
system\security\cryptography\sha512managed.cs (1)
34if (CryptoConfig.AllowOnlyFipsAlgorithms && AppContextSwitches.UseLegacyFipsThrow)
system\security\cryptography\utils.cs (1)
374if (!AppContextSwitches.DoNotAddrOfCspParentWindowHandle) {
system\security\permissions\fileiopermission.cs (2)
586!AppContextSwitches.UseLegacyPathHandling; 1099if (AppContextSwitches.UseLegacyPathHandling || !PathInternal.IsDevice(fullPath))
system\security\principal\windowsimpersonationcontext.cs (1)
123if (!AppContextSwitches.UseLegacyExecutionContextBehaviorUponUndoFailure)
system\security\securitycontext.cs (1)
90if (!AppContextSwitches.UseLegacyExecutionContextBehaviorUponUndoFailure)
system\security\util\urlstring.cs (1)
461if (path.Length >= (AppContextSwitches.BlockLongPaths ? PathInternal.MaxShortPath : PathInternal.MaxLongPath))
system\threading\CancellationTokenSource.cs (2)
637if (AppContextSwitches.ThrowExceptionIfDisposedCancellationTokenSource) 663if (m_disposed && !AppContextSwitches.ThrowExceptionIfDisposedCancellationTokenSource)
system\threading\compressedstack.cs (1)
85if (!AppContextSwitches.UseLegacyExecutionContextBehaviorUponUndoFailure)
system\threading\executioncontext.cs (1)
315if (!AppContextSwitches.UseLegacyExecutionContextBehaviorUponUndoFailure)
system\threading\Tasks\Parallel.cs (1)
228&& AppContextSwitches.ThrowExceptionIfDisposedCancellationTokenSource)
system\threading\Tasks\Task.cs (3)
679if (AppContextSwitches.ThrowExceptionIfDisposedCancellationTokenSource) 5711if (AppContextSwitches.ThrowExceptionIfDisposedCancellationTokenSource) 5762if (AppContextSwitches.ThrowExceptionIfDisposedCancellationTokenSource)
system\threading\thread.cs (2)
1200if (!AppContextSwitches.NoAsyncCurrentCulture) 1311if (!AppContextSwitches.NoAsyncCurrentCulture)
system\threading\timer.cs (1)
839internal static readonly bool UseNetCoreTimer = AppContextSwitches.UseNetCoreTimer;