From a249d2d1528e12d0125d654775a0b0278a2c05d5 Mon Sep 17 00:00:00 2001 From: Marco Rossignoli Date: Thu, 14 Jun 2018 19:30:56 +0200 Subject: [PATCH] add overloads (dotnet/coreclr#18458) Commit migrated from https://github.com/dotnet/coreclr/commit/5b230860900aab1c4023e729c33006b1b09107f8 --- src/libraries/System.Private.CoreLib/src/System/IO/Path.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/libraries/System.Private.CoreLib/src/System/IO/Path.cs b/src/libraries/System.Private.CoreLib/src/System/IO/Path.cs index 1e40ab5..ec9b1b3 100644 --- a/src/libraries/System.Private.CoreLib/src/System/IO/Path.cs +++ b/src/libraries/System.Private.CoreLib/src/System/IO/Path.cs @@ -409,6 +409,16 @@ namespace System.IO return JoinInternal(path1, path2, path3); } + public static string Join(string path1, string path2) + { + return Join(path1.AsSpan(), path2.AsSpan()); + } + + public static string Join(string path1, string path2, string path3) + { + return Join(path1.AsSpan(), path2.AsSpan(), path3.AsSpan()); + } + public static bool TryJoin(ReadOnlySpan path1, ReadOnlySpan path2, Span destination, out int charsWritten) { charsWritten = 0; -- 2.7.4