127 references to DirectorySeparatorChar
mscorlib (56)
system\io\directory.cs (4)
187
if (fullPath.EndsWith( Path.
DirectorySeparatorChar
)
194
if (!(fullPath.EndsWith( Path.
DirectorySeparatorChar
)
261
while (i > lengthRoot && fullPath[i] != Path.
DirectorySeparatorChar
&& fullPath[i] != Path.AltDirectorySeparatorChar) i--;
1410
String mountPoint = Path.CombineNoChecks(fullPath, fileName + Path.
DirectorySeparatorChar
);
system\io\directoryinfo.cs (6)
185
if (s.Length > 3 && s.EndsWith(Path.
DirectorySeparatorChar
))
650
if (!fullDestDirName.EndsWith(Path.
DirectorySeparatorChar
))
651
fullDestDirName = fullDestDirName + Path.
DirectorySeparatorChar
;
663
if (FullPath.EndsWith(Path.
DirectorySeparatorChar
))
666
fullSourcePath = FullPath + Path.
DirectorySeparatorChar
;
752
if (fullPath.EndsWith(Path.
DirectorySeparatorChar
))
system\io\file.cs (1)
1365
String tempPath = path.TrimEnd(new char [] {Path.
DirectorySeparatorChar
, Path.AltDirectorySeparatorChar});
system\io\filesysteminfo.cs (1)
131
if (ch == Path.
DirectorySeparatorChar
|| ch == Path.AltDirectorySeparatorChar || ch == Path.VolumeSeparatorChar)
system\io\isolatedstorage\isolatedstoragefile.cs (7)
562
if (path.EndsWith(Path.
DirectorySeparatorChar
+ ".", StringComparison.Ordinal)) {
563
if (fullPath.EndsWith(Path.
DirectorySeparatorChar
.ToString(), StringComparison.Ordinal)) {
566
fullPath += Path.
DirectorySeparatorChar
+ ".";
606
if (isPath.EndsWith(Path.
DirectorySeparatorChar
+ ".", StringComparison.Ordinal)) {
607
if (fullPath.EndsWith(Path.
DirectorySeparatorChar
)) {
610
fullPath += Path.
DirectorySeparatorChar
+ ".";
2423
if (lastChar == Path.
DirectorySeparatorChar
||
system\io\longpath.cs (9)
152
while (i > root && tempPath[--i] != Path.
DirectorySeparatorChar
&& tempPath[i] != Path.AltDirectorySeparatorChar);
506
while (i > lengthRoot && fullPath[i] != Path.
DirectorySeparatorChar
&& fullPath[i] != Path.AltDirectorySeparatorChar) i--;
741
if (fullPath.EndsWith(Path.
DirectorySeparatorChar
.ToString(), StringComparison.Ordinal))
747
searchPath = fullPath + Path.
DirectorySeparatorChar
+ "*";
796
String mountPoint = LongPath.InternalCombine(fullPath, data.cFileName + Path.
DirectorySeparatorChar
);
962
if (fullPath.EndsWith(Path.
DirectorySeparatorChar
.ToString(), StringComparison.Ordinal)
966
demandPath = fullPath + Path.
DirectorySeparatorChar
+ '.';
970
if (!(fullPath.EndsWith(Path.
DirectorySeparatorChar
.ToString(), StringComparison.Ordinal)
972
demandPath = fullPath + Path.
DirectorySeparatorChar
;
system\io\path.cs (20)
125
if (ch ==
DirectorySeparatorChar
|| ch == AltDirectorySeparatorChar || ch == VolumeSeparatorChar) break;
227
while (i > root && path[--i] !=
DirectorySeparatorChar
&& path[i] != AltDirectorySeparatorChar);
269
while (i < length && ((path[i] !=
DirectorySeparatorChar
&& path[i] != AltDirectorySeparatorChar) || --n > 0)) i++;
281
return (c==
DirectorySeparatorChar
|| c == AltDirectorySeparatorChar);
315
if (ch ==
DirectorySeparatorChar
|| ch == AltDirectorySeparatorChar || ch == VolumeSeparatorChar)
562
if (path.Length > 0 && (path[0] ==
DirectorySeparatorChar
|| path[0] == AltDirectorySeparatorChar)) {
580
if (currentChar ==
DirectorySeparatorChar
|| currentChar == AltDirectorySeparatorChar) {
639
(path[index + 1] ==
DirectorySeparatorChar
|| path[index + 1] == AltDirectorySeparatorChar))
641
newBuffer.Append(
DirectorySeparatorChar
);
650
newBuffer.Append(
DirectorySeparatorChar
);
858
if (newBuffer[i] ==
DirectorySeparatorChar
) {
1014
if (ch ==
DirectorySeparatorChar
|| ch == AltDirectorySeparatorChar || ch == VolumeSeparatorChar)
1175
if (ch ==
DirectorySeparatorChar
|| ch == AltDirectorySeparatorChar || ch == VolumeSeparatorChar) break;
1191
if ((length >= 1 && (path[0] ==
DirectorySeparatorChar
|| path[0] == AltDirectorySeparatorChar)) || (length >= 2 && path[1] == VolumeSeparatorChar))
1261
if (ch !=
DirectorySeparatorChar
&& ch != AltDirectorySeparatorChar && ch != VolumeSeparatorChar)
1276
if (ch !=
DirectorySeparatorChar
&& ch != AltDirectorySeparatorChar && ch != VolumeSeparatorChar) {
1277
finalPath.Append(
DirectorySeparatorChar
);
1299
if (ch !=
DirectorySeparatorChar
&& ch != AltDirectorySeparatorChar && ch != VolumeSeparatorChar)
1380
if ((searchPattern[index+2] ==
DirectorySeparatorChar
)
1411
if (ch !=
DirectorySeparatorChar
&& ch != AltDirectorySeparatorChar && ch != VolumeSeparatorChar)
system\io\pathhelper.cs (2)
330
Append(Path.
DirectorySeparatorChar
);
343
Append(Path.
DirectorySeparatorChar
);
system\io\pathinternal.cs (4)
558
return c == Path.
DirectorySeparatorChar
|| c == Path.AltDirectorySeparatorChar;
602
&& (current != Path.
DirectorySeparatorChar
619
builder.Append(Path.
DirectorySeparatorChar
);
636
current = Path.
DirectorySeparatorChar
;
system\resources\resourcemanager.cs (2)
1533
((fileName[1] == Path.VolumeSeparatorChar) || (fileName[0] == Path.
DirectorySeparatorChar
&& fileName[1] == Path.
DirectorySeparatorChar
)) &&
PresentationBuildTasks (6)
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (3)
144
SourceDir = Directory.GetCurrentDirectory() + Path.
DirectorySeparatorChar
;
274
if (!_outputPath.EndsWith((Path.
DirectorySeparatorChar
).ToString(), StringComparison.Ordinal))
275
_outputPath += Path.
DirectorySeparatorChar
;
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (1)
172
string sourceDir = Directory.GetCurrentDirectory() + Path.
DirectorySeparatorChar
;
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (2)
2586
Directory.GetCurrentDirectory() + Path.
DirectorySeparatorChar
,
3234
relPath = TaskHelper.GetRootRelativePath(Directory.GetCurrentDirectory() + Path.
DirectorySeparatorChar
, fullFilePath);
PresentationCore (4)
Core\CSharp\MS\Internal\FontCache\DWriteFactory.cs (3)
91
localPath = Directory.GetParent(fontCollectionUri.LocalPath).FullName + Path.
DirectorySeparatorChar
;
99
if (String.Compare(((localPath.Length > 0 && localPath[localPath.Length - 1] != Path.
DirectorySeparatorChar
) ? localPath + Path.
DirectorySeparatorChar
: localPath), Util.WindowsFontsUriObject.LocalPath, StringComparison.OrdinalIgnoreCase) == 0)
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (1)
143
_isFileSystemFolder = localPath[localPath.Length - 1] == Path.
DirectorySeparatorChar
;
PresentationFramework (5)
src\Framework\Microsoft\Win32\FileDialog.cs (5)
1446
if (!directory.EndsWith(Path.
DirectorySeparatorChar
.ToString(), StringComparison.Ordinal))
1448
directory = directory + Path.
DirectorySeparatorChar
;
1464
bool isUncPath = (fileName[0] == Path.
DirectorySeparatorChar
&& fileName[1] == Path.
DirectorySeparatorChar
);
1468
fileName[2] == Path.
DirectorySeparatorChar
);
System (2)
compmod\system\codedom\compiler\CodeDOMProvider.cs (1)
315
char[] pathSeperators = new char[] { Path.
DirectorySeparatorChar
};
compmod\system\diagnostics\traceutils.cs (1)
58
if ((initializeData[0] != Path.
DirectorySeparatorChar
) && (initializeData[0] != Path.AltDirectorySeparatorChar) && !Path.IsPathRooted(initializeData)) {
System.AddIn (1)
System\Addin\Hosting\Utils.cs (1)
160
if (lastChar != Path.
DirectorySeparatorChar
&& lastChar != Path.AltDirectorySeparatorChar)
System.Core (4)
System\Diagnostics\EventSchemaTraceListener.cs (1)
88
if (!String.IsNullOrEmpty(this.fileName) && (fileName[0] != Path.
DirectorySeparatorChar
) && (fileName[0] != Path.AltDirectorySeparatorChar) && !Path.IsPathRooted(fileName)) {
System\IO\__Error.cs (3)
95
if ((path[0] == Path.
DirectorySeparatorChar
) && (path[1] == Path.
DirectorySeparatorChar
)) {
126
if ((path[path.Length - 1]) == Path.
DirectorySeparatorChar
) {
System.Data.Entity (1)
System\Data\Metadata\MetadataArtifactLoader.cs (1)
452
path = path + System.IO.Path.
DirectorySeparatorChar
;
System.Web (20)
CachedPathData.cs (2)
561
if (_physicalPath[_physicalPath.Length-1] == System.IO.Path.
DirectorySeparatorChar
568
if (physicalPath[physicalPath.Length-1] == System.IO.Path.
DirectorySeparatorChar
Compilation\BuildResultCache.cs (1)
647
string baseName = Path.GetDirectoryName(f.FullName) + Path.
DirectorySeparatorChar
+ Path.GetFileNameWithoutExtension(f.FullName);
FileChangesMonitor.cs (3)
959
if (fileName.Length == dirNameLength || fileName[dirNameLength] == Path.
DirectorySeparatorChar
) {
1507
&& fullPathName[_appPathInternal.Length] == Path.
DirectorySeparatorChar
) {
1572
else if (dirName.Length > specialDirName.Length && dirName[specialDirName.Length] == Path.
DirectorySeparatorChar
) {
Hosting\ApplicationHost.cs (2)
47
if (!StringUtil.StringEndsWith(physicalDir, Path.
DirectorySeparatorChar
))
48
physicalDir = physicalDir + Path.
DirectorySeparatorChar
;
Hosting\ApplicationManager.cs (2)
891
if (!StringUtil.StringEndsWith(physicalPath, Path.
DirectorySeparatorChar
))
892
physicalPath = physicalPath + Path.
DirectorySeparatorChar
;
HttpRuntime.cs (4)
72
private static string DirectorySeparatorString = new string(Path.
DirectorySeparatorChar
, 1);
73
private static string DoubleDirectorySeparatorString = new string(Path.
DirectorySeparatorChar
, 2);
150
String fullPath = installDir + Path.
DirectorySeparatorChar
+ ModName.ENGINE_FULL_NAME;
3032
get { return Path.Combine(_theRuntime._appDomainAppPath, BinDirectoryName) + Path.
DirectorySeparatorChar
; }
MimeMapping.cs (1)
37
private static readonly char[] _pathSeparatorChars = new char[] { Path.
DirectorySeparatorChar
, Path.AltDirectorySeparatorChar, Path.VolumeSeparatorChar }; // from Path.GetFileName()
Util\FileUtil.cs (5)
91
int nextSeparator = fileName.IndexOf(Path.
DirectorySeparatorChar
, existingDir.Length + 1);
110
&& filePath[appRoot.Length] == Path.
DirectorySeparatorChar
) {
515
relativePathLong = fd.cFileName + Path.
DirectorySeparatorChar
+ relativePathLong;
517
relativePathShort = fd.cAlternateFileName + Path.
DirectorySeparatorChar
+ relativePathShort;
520
relativePathShort = fd.cFileName + Path.
DirectorySeparatorChar
+ relativePathShort;
System.Web.Extensions (1)
Compilation\WCFModel\ExternalFile.cs (1)
139
if (fileName.IndexOfAny(Path.GetInvalidFileNameChars()) >= 0 || fileName.IndexOfAny(new Char[] { Path.
DirectorySeparatorChar
, Path.AltDirectorySeparatorChar, Path.VolumeSeparatorChar }) >= 0)
System.Windows.Forms (3)
winforms\Managed\System\Resources\ResXFileRef.cs (3)
139
} else if (path1[i] == Path.
DirectorySeparatorChar
) {
154
if (path1[i] == Path.
DirectorySeparatorChar
) {
155
relPath.Append(".."+Path.
DirectorySeparatorChar
);
System.Workflow.Activities (6)
Designers\StateDesigner.cs (6)
2637
if (value != null && value.Length > 0 && value.Contains(Path.
DirectorySeparatorChar
.ToString()) && Path.IsPathRooted(value))
2668
if (value != null && value.Length > 0 && value.Contains(Path.
DirectorySeparatorChar
.ToString()) && Path.IsPathRooted(value))
2734
relativePath = relativePath.Replace(Path.AltDirectorySeparatorChar, Path.
DirectorySeparatorChar
);
2735
if (!relativePath.Contains(Path.
DirectorySeparatorChar
.ToString()))
2736
relativePath = "." + Path.
DirectorySeparatorChar
+ relativePath;
2743
if (path.Contains(Path.
DirectorySeparatorChar
.ToString()) && directory.Length > 0)
System.Workflow.ComponentModel (17)
AuthoringOM\Compiler\CompileXomlTask.cs (3)
1189
manifestName = manifestName.Replace(Path.
DirectorySeparatorChar
, '.');
1203
manifestName = manifestName.Replace(Path.
DirectorySeparatorChar
, '.');
1209
manifestName = info.culture + Path.
DirectorySeparatorChar
+ manifestName;
AuthoringOM\Compiler\XomlCompilerHelpers.cs (3)
440
trimCharsArray = new char[] { Path.
DirectorySeparatorChar
};
519
string trialFileName = path + Path.
DirectorySeparatorChar
+ realFileName;
535
fullPathName = fullPathName.TrimEnd(new char[] { Path.
DirectorySeparatorChar
});
AuthoringOM\Compiler\XomlCompilerParameters.cs (1)
229
if ((path[parentLength] != Path.
DirectorySeparatorChar
) && (path[parentLength] != Path.AltDirectorySeparatorChar))
AuthoringOM\Design\DesignerHelpers.cs (4)
1465
relativePath = relativePath.Replace(Path.AltDirectorySeparatorChar, Path.
DirectorySeparatorChar
);
1466
if (!relativePath.Contains(Path.
DirectorySeparatorChar
.ToString()))
1467
relativePath = "." + Path.
DirectorySeparatorChar
+ relativePath;
1474
if (path.Contains(Path.
DirectorySeparatorChar
.ToString()) && directory.Length > 0)
AuthoringOM\Design\Themes.cs (6)
313
path = Path.Combine(path, "Windows Workflow Foundation" + Path.
DirectorySeparatorChar
+ "Themes");
314
path += Path.
DirectorySeparatorChar
;
649
directory = Path.GetDirectoryName(this.filePath) + Path.
DirectorySeparatorChar
;
1074
if (value != null && value.Length > 0 && value.Contains(Path.
DirectorySeparatorChar
.ToString()) && Path.IsPathRooted(value))
1502
if (!String.IsNullOrEmpty(value) && value.Contains(Path.
DirectorySeparatorChar
.ToString()) && Path.IsPathRooted(value))
2553
if (!String.IsNullOrEmpty(value) && value.Contains(Path.
DirectorySeparatorChar
.ToString()) && Path.IsPathRooted(value))
System.Xml (1)
System\Xml\Serialization\Configuration\XmlSerializerSection.cs (1)
90
if (firstChar == Path.
DirectorySeparatorChar
|| firstChar == Path.AltDirectorySeparatorChar)