Changing element values in a list

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
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.104.95