2015-11-08 47 views

回答

4

我知道在WinRT中檢索程序集的唯一方法是通過GetTypeInfo擴展方法。它在命名空間System.Reflection中定義:

using System.Reflection; 

... 

     foreach (var attribute in this.GetType().GetTypeInfo().Assembly.CustomAttributes) 
     { 
      Debug.WriteLine(attribute); 
     } 
相關問題