Generic ValueInjection and lambda expressions

May 20, 2010 at 7:05 AM


I tried value injecter after a discussion over StackOverflow and I'm really happy with it.

However, I would like to know if it is planned a generic ValueInjection<From, To> to have more elegant code wand many other benefits (by example, compiler safety for properties and refactoring helpers).

Thank you


May 20, 2010 at 7:35 AM


Yes, I'm thinking to do something like this, and planning to make the process of creating value injections much easier.

I think there is going to be something like you showed and something to show a prefix to be removed/added when looking for the target property to inject





Jun 10, 2010 at 3:01 PM
Edited Jun 10, 2010 at 3:01 PM

Hi !

It's done,

The current release has lots of generic ValueInjections.

you have now the LoopValueInjection<TSourceProperty, TTargetProperty> which you can extend.

there is also other injections, you can look at the examples in the download