Browse by Tags

All Tags » LINQ To Object » C# (RSS)

French ALT .NET Demo

Last week, I spoke at an EF session for the french ALT .NET community. During its course, I made a WCF demo with EF POCO and a sort of LINQ provider in the client part . This provider is very simplistic (made in less than 15 minutes), isn't thread...

How to use LINQ extension methods on non generic IEnumerable?

LINQ extension methods are great but... it's not so cool when we use non generic collections as it is often the case with Sharepoint or TFS APIs. Likely, we have two LINQ extension methods Cast and OfType which allow us to transform our non generic...
Posted by Matthieu MEZIL | 6 comment(s)
Filed under: , ,

Bug with IQueryable and yield syntax: System.BadImageFormatException "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"

I find a bug if you mix IQueryable and yield syntax. After Diego has changed a little bit my sample to reproduce it, this is the code he sent to the C# team: class Program { static void Main( string [] args) { try { GetCategoryProductsUsingQueryable(...