Summary: Use Windows PowerShell to generate an object with two property types.
How can I use Windows PowerShell to generate an object with two property types from simply splitting a string?
Use the ConvertFrom-String cmdlet to pipe a string, and then specify the desired property types, for example:
PS C:\>“123 456” | ConvertFrom-String –PropertyType String,Int
0 comments