开发者

Accessing newer APIs in a redirected assembly

If I use Assembly Binding Redirection to redirect my v1.0 referenced assembly to a v1.1 assem开发者_StackOverflow中文版bly, can I use reflection APIs to:

  • Create new classes introduced in the v1.1 assembly
  • Invoke new methods of existing classes introduced in the v1.1 assembly

While keeping reference to the v1.0 assembly?


Mmmm, I'm not sure if this makes sense.

You could do what you say but you would need to know the class names and methods available at 1.1 while coding against the 1.0 version so you why not to change to the 1.1 references?

You can create instances with name using the Activatior.CreateInstance().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜