Use new string.ConCat() in Process.cs (#9720)

This commit is contained in:
Ilya
2019-06-01 23:51:25 +05:00
committed by GitHub
parent 931c438ff1
commit 83708a4242
@@ -795,9 +795,7 @@ namespace Microsoft.PowerShell.Commands
break;
}
// TODO: Use Concat() from .Net Core 3.0
// public static string Concat(ReadOnlySpan<char> str0, ReadOnlySpan<char> str1, ReadOnlySpan<char> str2)
userName = string.Concat(domainNameStr.Slice(0, domainNameLength).ToString(), "\\", userNameStr.Slice(0, userNameLength).ToString());
userName = string.Concat(domainNameStr.Slice(0, domainNameLength), "\\", userNameStr.Slice(0, userNameLength));
} while (false);
}
catch (NotSupportedException)