An alternative would be to add the LINQ operators to the existing collection types via extension methods in a separate DLL. The extension methods could all be auto-code-generated since it's just delegating to the System.Core.dll methods after a Cast<T>().
M. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jb Evain Sent: Sunday, January 04, 2009 7:20 AM To: [email protected] Subject: [mono-cecil] Re: Patch to make all Mono.Cecil collections implement IEnumerable<T> Hey Daniel, On 1/4/09, Daniel Cazzulino <[email protected]> wrote: > This enables seamless integration with all the LINQ goodness, rather than > being forced (and usually forgetting) to invoke collection.Cast<T> on all > collections before using them in queries. The issue is that the current version of Cecil is still being used on .net 1.1 (and even on the CF 1.0). I'll maintain it this way for a while I guess. --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
