9/4/2008 11:38:25 AM
Came across a need this morning to use the FindAll method. To my dismay it wasn't there. I know that Silverlight uses a subset of the .NET Framework but the System.Collections.Generic namespace is definitely there.

You can clearly see that I'm using the namespace in the above image.

Here you can see that ReSharper's background compiling caught it right away. For a second there I thought: "You know, maybe ReSharper is full of shit. This can't be right." I tried to compile to make sure (which was the case with the version 4 nightly builds).
'System.Collections.Generic.List' does not contain a definition for 'FindAll' and no extension method 'FindAll' accepting a first argument of type 'System.Collections.Generic.List' could be found (are you missing a using directive or an assembly reference?)
Weird.
C#,
Silverlight

Comments

Came across the same problem... how did you solve it?
Posted by: gerokee | 12/2/2008 7:14:04 AM

I didn`t solve it :(
I had to resort to enumerating the List<T> via foreach.
Now I just create a ForEach extension method.
Posted by: Will Asrari | 12/2/2008 1:24:24 PM