I
I
ichernob2015-09-04 16:59:10
Android
ichernob, 2015-09-04 16:59:10

Can't get type through Reflection. A null reference is returned. How to fix?

After executing this line, t does not receive any reference. What am I doing wrong?
The StorageManager is in Mono.Android.dll
( https://developer.xamarin.com/releases/android/xam...
How do I get t to contain a reference to the StorageManager?

Type t = Type.GetType("Android.OS.Storage.StorageManager, Mono.Android");

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Kulakov, 2015-09-04
@carbon88

Try to still use AssemblyQualifiedName instead of just the fully qualified type name and assembly name.
To a StorageManager object or a reference to a Type object corresponding to the type of StorageManager?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question