C# 3 and LINQ on .net 2 14 Sep 2008


Macro test My friend Patrick is wondering what's the best way to use the type System.Collections.Generic.HashSet, in NDepend, that he wants to deploy on computers with only .net 2 installed. Well it's pretty simple, the best way to get it, is to get it from Mono. The code is licensed under the MIT/X11 license, allowing multiple usages. And that's not all. If you're dying to use C#3 or LINQ to objects in your application, but that you want to be able to release on .net 2 only, you can simply compile and ship Mono's implementation of System.Core. Microsoft's C# compiler, csc 3.5, won't have any issue using it, et voilĂ , you'll get an application using LINQ or C#3, and deployable on .net 2. Mono's implementation of System.Core is available in SVN here.