This is a follow up on my previous post: http://rogeralsing.com/2008/02/21/typed-factories-in-c3-managed-new/ I’ve added support for property and field initializers. This makes it possible to call your factory like this: Person person = MyFactory.Create(() => new Person(“Roger”, “Alsing”) { Age = 32, SomeIntField = 4, SomeIntArray = new int[]{1,2,3} }); You can find the…More
Category Archives: .NET
Typed factories in C#3 – Managed “new”
One thing that always bothered me with factory methods in earlier versions of C# is that the only way to make a generic factory method, you have to pass in all the constructor args as an object array. A normal factory method might look something like this: public T Create<T>(params object[] args) … And you…More
More Linq support for NPersist
I’ve added a bit more Linq support for NPersist today. The nice thing is that we can “cheat” in our Linq provider, we can transform our Linq queries into NPath queries. Thus, I don’t have to touch the wicked SQL generation. I just have to produce valid NPath, which is pretty similair to Linq. Just…More
AlbinoHorse – Class Designer
I have published my class designer component at CodePlex. You can find binaries and sourcecode here: http://www.codeplex.com/AlbinoHorse AlbinoHorse is a Windows Forms control for UML Class diagrams that I’m currently developing. The idea is to use it in our next version of ObjectMapper. (Mapper tool for ORM entities)More
DSLisp
MyLisp is now named DSLisp – Domain Specific (Language) Lisp. I have published it as a project on CodePlex: http://www.codeplex.com/DSLisp The new name imples the purpose of the project. To act as a host for DSL’s. The idea is to compile your DSL into the DSLisp AST. And then run your DSL inside the DSLisp engine. By…More
