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

◆ CombineInternal() [1/3]

static string System.IO.Path.CombineInternal ( string first,
string second )
inlinestaticprivate

Definition at line 566 of file Path.cs.

567 {
568 if (string.IsNullOrEmpty(first))
569 {
570 return second;
571 }
572 if (string.IsNullOrEmpty(second))
573 {
574 return first;
575 }
576 if (IsPathRooted(second.AsSpan()))
577 {
578 return second;
579 }
580 return JoinInternal(first.AsSpan(), second.AsSpan());
581 }
static bool IsPathRooted([NotNullWhen(true)] string? path)
Definition Path.cs:985
static string JoinInternal(ReadOnlySpan< char > first, ReadOnlySpan< char > second)
Definition Path.cs:641

References System.IO.Path.IsPathRooted(), and System.IO.Path.JoinInternal().

Referenced by System.IO.Path.Combine(), System.IO.Path.Combine(), System.IO.Path.Combine(), System.IO.Path.CombineInternal(), and System.IO.Path.CombineInternal().