diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs index d869512e32a..76f59117732 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs @@ -795,9 +795,7 @@ private static string RetrieveProcessUserName(Process process) break; } - // TODO: Use Concat() from .Net Core 3.0 - // public static string Concat(ReadOnlySpan str0, ReadOnlySpan str1, ReadOnlySpan 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)