我什么都找不到。我想检查类型是否不是接口(interface)。
最佳答案
在WinRT上,大多数反射方法都可以通过 TypeInfo
访问。
您可以通过TypeInfo
命名空间下的 GetTypeInfo
扩展方法来获取类型的System.Reflection
。
typeof(string).GetTypeInfo().IsInterface
关于c# - Windows Store .NET中是否有Type.IsInterface或IsClass的等效项?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21499327/