Factory Pattern with Open Generics

前端 未结 4 457
南旧
南旧 2020-12-13 18:12

In ASP.NET Core, one of the things you can do with Microsoft\'s dependency injection framework is bind \"open generics\" (generic types unbound to a concrete type) like so:<

4条回答
  •  我在风中等你
    2020-12-13 18:30

    See this issue on the dotnet (5) runtime git. This will add support to register open generics via a factory.

提交回复
热议问题