开发者

System.Reflection.Assembly.GetExecutingAssembly() in WinRT

There is no longer a static method on the Assembly class in WinRT for gaining access to the current executing assembly? W开发者_Go百科hat is the methodology for this in WinRT?


This should do the trick:

using System.Reflection;
...
typeof(Class).GetTypeInfo().Assembly

where Class would normally be the class that you're writing this code in.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜