0
我可以得到一个非静态属性没问题(How to get properties of a class in WinRT)或c#.net中的静态属性,但无法弄清楚如何获得一个静态属性C3 winrt中的静态属性。如何使用反射来获取WinRT中的类的静态属性
这就是我所得到的。谁能帮忙?
Type type = typeof(ToastNotificationManager);
var typeInfo = type.GetTypeInfo();
var historyProperty = type.GetRuntimeProperty("History");
object history = historyProperty.get
property.SetValue(obj, value);
我想反映和呼吁ToastNotificationManager.History.Remove(),它仅支持在手机上(ToastNotificationManager.History)
null是静态特殊的秘密酱,谢谢! – swinefeaster 2014-11-03 22:49:22