LightInject
LightInject copied to clipboard
Support for IEnumerable<Lazy<T>> and IEnumerable<Func<T>>
While Lazy<..>
is supported, IEnumerable<Lazy<..>>
is not (as well as IEnumerable<Func<..>>
).
What I want is to load all registered instances but only create a few of them at a time.
While trying to modify the behavior (just playing around), I saw that GenericMappingResult
is a public class, but it's constructor is not. So no one can create a modified version of IGenericArgumentMapper
(without using reflection)...
Is that a fixed design choice?