Pattern matching on generics in a non-generic method implementing an interface

后端 未结 2 1188
心在旅途
心在旅途 2021-01-21 11:42

I have a frustrating problem. I\'m building a view engine in ASP.NET MVC and are implementing the interface IViewEngine. In one of the methods I\'m trying to dynamically figure

2条回答
  •  误落风尘
    2021-01-21 12:27

    Can you make the whole view engine class generic, according to the type of 'key it uses? Indivudual projects will need to inherit from your view engine class and specify the type of key in the process.

提交回复
热议问题