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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -