Any idea on how to do this in a portable class? 't' does not seem to have IsInterface or IsAbstract nor does Type have IsAssignableFrom.
I am trying to activate an instance from an interface inside a portable class library project so I can use it inside Xamarin.
I tried this code from this question but it does not work as a lot of stuff are not there in the portable projects
Code from question:
Type[] iLoadTypes = (from t in Assembly.Load("ClassLibrary1").GetExportedTypes()
where !t.IsInterface && !t.IsAbstract
where typeof(ILoad).IsAssignableFrom(t)
select t).ToArray();
Thanks