203
Let's say we have an array of objects $objects. Let's say these objects have a "Name" property.
This is what I want to do
$results = @()
$objects | %{ $results += $_.Name }
This works, but can it be done in a better way?
If I do something like:
$results = objects | select Name
$results is an array of objects having a Name property. I want $results to contain an array of Names.
Is there a better way?