This request might sounds a little bit odd, but application-performance and maintenance is cruciual, so I'm really looking for something as described.
Because I'm not sure if the 3 words are enough to explain what I'm looking for, here's an example:
I use IoC a lot, especially if I have dyniamical behaviours, which is often the case.
It's a very easy and frankly cool technique to have a loose coupled application.
But the freedom comes with a price of a higher performance-cost, compared with a "hard wired" solution.
Normally this is not a too big issue, but in the current case, it is.
So what I'd like to have is a feature which works like an IoC, but of course with a hard-wired .cs-file, instead of an "generated at runtime" Container.
Like if I need all implementations of IBehaviour, I'd get an output such as "behaviours = new List { impl1, impl2, ... }, instead of behaviours = Container.GetAllInstancesOf()
Hope it's clear what I'm looking for and that something like this exists.
And if not: What would be the way to implement this feature? Only way I can imagine is a VisualStudio-Plugin which reflects a compiled dll and with the help of custom attributes can write a .t4-file.
Cheers!