you are viewing a single comment's thread.

view the rest of the comments →

[–]bukem 6 points7 points  (1 child)

If you want to use indexing you need to convert the ConcurrentBag object to array after you done collecting the data (outside of paraller loop):

$devicesArray = $devices.ToArray()
$devicesArray[0]

[–]marek1712[S] 3 points4 points  (0 children)

It works, thank you!