Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 5b23086

Browse files
MarcoRossignolistephentoub
authored andcommitted
add overloads (#18458)
1 parent fb8d7b8 commit 5b23086

File tree

1 file changed

+10
-0
lines changed
  • src/System.Private.CoreLib/shared/System/IO

1 file changed

+10
-0
lines changed

src/System.Private.CoreLib/shared/System/IO/Path.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,16 @@ public static string Join(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2, Re
409409
return JoinInternal(path1, path2, path3);
410410
}
411411

412+
public static string Join(string path1, string path2)
413+
{
414+
return Join(path1.AsSpan(), path2.AsSpan());
415+
}
416+
417+
public static string Join(string path1, string path2, string path3)
418+
{
419+
return Join(path1.AsSpan(), path2.AsSpan(), path3.AsSpan());
420+
}
421+
412422
public static bool TryJoin(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2, Span<char> destination, out int charsWritten)
413423
{
414424
charsWritten = 0;

0 commit comments

Comments
 (0)