2012-09-26 27 views

回答

5

IsClass財產已轉移到類。基本上你需要更換;

帶;

bool result = type.GetTypeInfo().IsClass; 

GetTypeInfo()除非你已經using System.Reflection是System.Reflection命名空間的擴展方法,無不是在明顯可見的System.Type。

IsInDesignTool財產有moved to another place too and changed name;

bool result = Windows.ApplicationModel.DesignMode.DesignModeEnabled; 
+0

很酷,非常感謝。 – John

相關問題