February 2019
Intermediate to advanced
626 pages
15h 51m
English
A generic list must have a type declared. A generic list, in this case a list of strings, is created as follows:
$list = New-Object System.Collections.Generic.List[String]
ArrayList is created in a similar manner. ArrayList cannot have the type declared:
$arrayList = New-object System.Collections.ArrayList
Once created, ArrayList may be used in much the same way as a generic list.
Read now
Unlock full access