Elements within a list may be changed by assigning a new value to a specific index, for example:
$list = New-Object System.Collections.Generic.List[Int]
$list.AddRange([Int[]](1, 2, 2, 4)) $list[2] = 3
Elements within a list may be changed by assigning a new value to a specific index, for example:
$list = New-Object System.Collections.Generic.List[Int]
$list.AddRange([Int[]](1, 2, 2, 4)) $list[2] = 3