16 references to UseLegacyPathHandling
mscorlib (16)
system\io\directory.cs (1)
1096
string currentDirectory = AppContextSwitches.
UseLegacyPathHandling
? LegacyGetCurrentDirectory() : NewGetCurrentDirectory();
system\io\filestream.cs (1)
725
(!CodeAccessSecurityEngine.QuickCheckForAllDemands() || AppContextSwitches.
UseLegacyPathHandling
)
system\io\path.cs (7)
173
string normalizedPath = NormalizePath(path, fullCheck: false, expandShortPaths: AppContextSwitches.
UseLegacyPathHandling
);
248
if (AppContextSwitches.
UseLegacyPathHandling
)
399
if (AppContextSwitches.
UseLegacyPathHandling
)
938
if (AppContextSwitches.
UseLegacyPathHandling
)
946
if (AppContextSwitches.
UseLegacyPathHandling
)
964
if (AppContextSwitches.
UseLegacyPathHandling
)
982
if (AppContextSwitches.
UseLegacyPathHandling
)
system\io\pathinternal.cs (5)
52
bool isExtended = !AppContextSwitches.
UseLegacyPathHandling
&& IsExtended(path);
109
if (AppContextSwitches.
UseLegacyPathHandling
|| !IsExtended(fullPath))
148
if (AppContextSwitches.
UseLegacyPathHandling
|| !IsExtended(fullPath))
330
if (!AppContextSwitches.
UseLegacyPathHandling
&& IsDevice(path))
353
int startIndex = AppContextSwitches.
UseLegacyPathHandling
? 0 : IsDevice(path) ? ExtendedPathPrefix.Length : 0;
system\security\permissions\fileiopermission.cs (2)
586
!AppContextSwitches.
UseLegacyPathHandling
;
1099
if (AppContextSwitches.
UseLegacyPathHandling
|| !PathInternal.IsDevice(fullPath))