Cannot create a .Net object in PowerShell -
i beginner in powershell scripting.
have tried create .net object executing following command fails :
[system.collections.generic.list<system.string>]$mylist = new-object system.collections.generic.list<system.string>
an error message informs me type [system.collections.generic.list] has not been found.
error message informs me should check if assembly containing type loaded.
i guess have load assembly containing type [system.collections.generic.list] not know how it.
i want know .net framework version can use types in powershell.
any appreciated
wrong syntax. types , type parameters delimited square brackets, not angled ones.
$mylist = new-object 'system.collections.generic.list[system.string]'
Comments
Post a Comment