Getting a Type Assembly in Windows 8

让人想犯罪 __ 提交于 2019-12-05 01:43:48
Roman Boiko
using System.Reflection;

Use type.GetTypeInfo().Assembly instead.

Found the answer after some digging through the loads of documentation on building metro style apps.

http://msdn.microsoft.com/en-us/library/windows/apps/br230302%28v=VS.85%29.aspx#reflection

The reflection aspects of the Type class have been moved to a new object called System.Reflection.TypeInfo. You can get an instance of this class by calling type.GetTypeInfo().

So to get the Assembly: typeof(App).GetTypeInfo().Assembly.

Requires using System.Reflection;

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!