2016-08-08 19 views
1

私はwin 10アプリを開発しています。私はタイプのBaseTypeを知りたいです。 uwpでReflectionを使用してそれを行う方法。 ありがとうございます。UWPでタイプの基本タイプを特定します

+0

可能な複製(http://stackoverflow.com/questions/33068373/reflection-in-universal-windows-platform-uwp-missing-properties) – IInspectable

答えて

3

GetTypeInfo拡張メソッドを使用してBaceTypeを取得できます。 [ユニバーサルWindowsプラットフォームにおけるリフレクション(UWP)行方不明のプロパティ]の

Type t = typeof(int); 
Type baseType = t.GetTypeInfo().BaseType; // Returns System.ValueType 
関連する問題