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

Edited 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);
```

Viewing all articles
Browse latest Browse all 249


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>