22 February 2023

Powershell generic List

list are allways to be used what the collection has to grow or shrink.

arrays should be used only when the collection have a fixed length and it will not change.


[System.Collections.Generic.List[string]]::new()

[System.Collections.Generic.List[int]]::new()

[System.Collections.Generic.List[Object]]::new()


No comments:

Post a Comment