19

WinRT 中的 Assembly 类上不再有用于访问当前正在执行的程序集的静态方法?WinRT 中的方法是什么?

4

1 回答 1

32

这应该可以解决问题:

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

Class通常是您编写此代码的类。

于 2011-09-17T01:34:15.590 回答