2012-09-26 26 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

相关问题