Quantcast
Channel: Obfuscar, The Open Source Obfuscation Tool for .NET Assemblies
Viewing all articles
Browse latest Browse all 249

Commented Unassigned: 'System.Reflection.ReflectionTypeLoadException' when calling Assembly::GetTypes() [35]

$
0
0
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);
```
Comments: Can you show how this code snippet triggers the exception and how this exception is related to Obfuscar?

Viewing all articles
Browse latest Browse all 249

Trending Articles