As some of you might know, I’ve been working on a class designer (Albino horse) off and on for a while now. I’ve also started to work on a code generator where the class designer will be used. The code generator will be a sort of hybrid between old school DB code generator and Puzzle ObjectMapper.…More
Linq to objects for .NET 2 available
Patrik Löwendahl blogged about using C#3 features in .NET 2 via VS.NET 2008 a few days ago: http://www.lowendahl.net/showShout.aspx?id=191 There are quite a few of the new features that works straight out of the box. However, Linq does not, alot of the code that Linq uses is simply not present in the .NET 2 BCL. So,…More
Hidden gem: BuildManager.GetType
I’ve been digging through the ObjectDataSource today and I was trying to figure out how they created the datasource instance from the type name. Now some clever reader might say “I know, I know, Type.GetType(string)”… But that’s wrong.. Type.GetType(string) requires full type names with assembly name and the whole shebang. The ObjectDataSource is able to…More
CIL – Compiler construction
I’ve created a little sample on how to make your own .NET compiler. The compiler uses Gold parser for parsing and Reflection.Emit to generate the compiled .exe file. Initially I intended to make a sample on how to use Gold parser to parse and then compile Linq expressions, thus the name GoldLinq, however, Linq have now been replaced…More
Linq Expressions – Creating objects
This post shows how you can use Linq expression trees to replace Activator.CreateInstance. but first, please note that this is a followup on Oren’s post so read it before you read mine: http://www.ayende.com/Blog/archive/2008/02/27/Creating-objects–Perf-implications.aspx In C#3 we can use Linq expression trees to solve this problem to. I’m not saying that it is a better or faster…More