LightInject icon indicating copy to clipboard operation
LightInject copied to clipboard

Support for IEnumerable<Lazy<T>> and IEnumerable<Func<T>>

Open WolfgangKluge opened this issue 6 years ago • 0 comments

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?

WolfgangKluge avatar Dec 28 '18 22:12 WolfgangKluge