Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any equivalent of Type.IsInterface or IsClass in Windows Store .NET?

I can't find anything. I want to check if type is not interface.

like image 211
Paweł Słowik Avatar asked Feb 01 '14 14:02

Paweł Słowik


1 Answers

On WinRT, most reflection methods are accessible through TypeInfo.

You can get a type's TypeInfo through the GetTypeInfo extension method, available under the System.Reflection namespace

typeof(string).GetTypeInfo().IsInterface
like image 200
dcastro Avatar answered Sep 28 '22 06:09

dcastro