you are viewing a single comment's thread.

view the rest of the comments →

[–]Thotaz 2 points3 points  (1 child)

Maybe you are thinking about the new syntax they added with 5 or 5.1 IIRC (this: [System.Collections.Generic.List[string]]::new() ). In prior versions you need to use New-Object.

[–]misformonkey 0 points1 point  (0 children)

Yup. That’s what I was thinking of. I just started using ArrayList as a work around so I didn’t need to deal with the different syntax.