This project has moved. For the latest updates, please go here.
1

Closed

'System.Reflection.ReflectionTypeLoadException' when calling Assembly::GetTypes()

description

Hi. I'm getting 'System.Reflection.ReflectionTypeLoadException' when runnning this code:

Code:
            var dll = AppDomain.CurrentDomain.GetAssemblies().OrderBy(o => o.FullName);
            var types = dll
                   .SelectMany(o => o.GetTypes())
                   .Where(t => typeof(ISomeiface).IsAssignableFrom(t))
                   .Where(t => !t.IsAbstract)
                   .Where(t => !t.IsInterface)
            .Where(t => t.GetConstructor(new Type[] { }) != null);
Closed Sep 21, 2016 at 12:48 PM by lextm

comments

lextm wrote Jun 11, 2016 at 4:16 AM

Can you show how this code snippet triggers the exception and how this exception is related to Obfuscar?

lextm wrote Sep 21, 2016 at 12:48 PM

Temp close.