mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Use new string.ConCat() in Process.cs (#9720)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user