Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CombinePathWithRelativePath()

static string System.Reflection.Metadata.PathUtilities.CombinePathWithRelativePath ( string root,
string relativePath )
inlinestaticpackage

Definition at line 48 of file PathUtilities.cs.

49 {
50 if (root.Length == 0)
51 {
52 return relativePath;
53 }
54 char c = root[root.Length - 1];
55 if (c == '\\' || c == '/' || c == ':')
56 {
57 return root + relativePath;
58 }
59 return root + PlatformSpecificDirectorySeparator + relativePath;
60 }

References System.Reflection.Metadata.PathUtilities.PlatformSpecificDirectorySeparator.

Referenced by System.Reflection.PortableExecutable.PEReader.TryOpenCodeViewPortablePdb().