When developing in C#, using functional-like methods such as Where, Select, Aggregate, etc. is really good for many reasons and I use them quite a lot. However, the Silverlight 4.0 Framework for Windows Phone 7.1 does not seem to include those. Is there any way to change that? I guess I can’t just change the mscorlib.dll to point to the one from the full .NET framework, or can I?
When developing in C#, using functional-like methods such as Where, Select, Aggregate, etc. is
Share
Caveat: I don’t do active WP7 development.
However! Spinning up a vanilla Windows Phone 7.1 project, and using the following, it works fine – both LINQ query-syntax and extension-method syntax work fine:
The only thing to note is that it is obtaining these methods from System.Core.dll, i.e. (if I browse it in the IDE):
So: just make sure you are referencing the System.Core.dll for Windows Phone 7.1
edit (see comments) : also check you have:
At the top of the file.