I want to register all my types implementing IManager so that they can be used as the type T for the generic Lazy<T> class.
Say I have the following interface for exposing a paged list public interface IPagedList<T> { IEnumerable<T> PageResults { get; }
Is it possible to use unity like so: container.Register(typeof(IMyType<car>)开发者_如何学运维, typeof(MyType1<car>));
开发者_开发技巧When I do int[], string[], T[] - this is a generic array. An array is just an object like everything else.
This question already has answers here: Generics open and closed constructed types (3 answers) Closed 9 years ago.