Home Dashboard Directory Help
Search

PowerShell System.Strings should have a .Join method, like .Split by Stephen Owen


Status: 

Active


1
0
Sign in
to vote
Type: Suggestion
ID: 833515
Opened: 3/13/2014 11:56:36 AM
Access Restriction: Public
0
Workaround(s)
view

Description

Hi all,

Thought it was very bizarre that PowerShell does not currently have a .Join() method available to system.String objects. The only way to get this functionality is to use [string]::Join('join character', $string) or $string -join 'join character'. I'm sure this has roots in c# or .Net somewhere, but I find this to be very user unfriendly. if the functionality exists by another means, I think it should be easily accessible using the same syntax people would expect.

Thanks,


Details
Sign in to post a comment.
Sign in to post a workaround.