First of enumerable
From
Gloops@21:1/5 to
All on Tue Jul 17 23:39:15 2018
Hello everybody,
Somewhere on Stackoverflow, I saw it was possible to get the first
element of an enumerable, like this :
[Linq.Enumerable]::First($list)
Well, I get the list of processes like this :
$p = Get-WmiObject Win32_Process
but if I type
[Linq.Enumerable]::First($p)
I get an error, something like "unfound override for "First" and the
number of arguments "1"
(I hope I translate properly)
Well, I presume I should cast the object ?
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)