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