Functions/PSPlus.Modules.Core/New-GenericList.ps1
function New-GenericList { [CmdletBinding()] param( [Parameter(Position = 0, ValueFromPipeline = $true, Mandatory = $true)] [string] $InputObject ) $collectionTypeName = "System.Collections.Generic.List[$InputObject]" return New-Object $collectionTypeName } |