Unity 2.0 registering generic types via XML

后端 未结 3 1765
灰色年华
灰色年华 2020-12-09 12:48

I am trying to register a generic type in a config file for Unity 2.0 but can\'t seem to get it right. I have been referring to the MS documentation here : http://msdn.micro

3条回答
  •  无人及你
    2020-12-09 13:03

    I think you need to add `1, as the examples here on MSDN would suggest:

    type="X.Services.Interfaces.IRepository`1[[X.Domain.Entities.Blog, X.Domain]], X.Services"
    

提交回复
热议问题