gpt4 book ai didi

c# - 如果类是 WinRT 类型,如何使用 C# 反射来确定

转载 作者:太空宇宙 更新时间:2023-11-03 13:40:55 25 4
gpt4 key购买 nike

是否有在运行时确定类型是否为 WinRT 类的方法? IE。如果它的 WinRT 以一种方式运行,如果不是则以另一种方式运行?

最佳答案

来自 http://blogs.msdn.com/b/ptorr/archive/2012/05/27/loading-winrt-types-via-reflection-in-windows-8.aspx

看起来您可以获取 AssemblyQualifiedName 并查看它是否包含 ContentType=WindowsRuntime

关于c# - 如果类是 WinRT 类型,如何使用 C# 反射来确定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17071515/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com