You will need to publish your code for FindType (). I assume you are doing something like:
System.Reflection.Assembly.GetExecutingAssembly().GetTypes()
to find the list of types to search, and the type in TestB.dll is missing in Test.dll, so the element was not found.
Instead, you can try something like this:
public static IEnumerable<Type> LoadedType()
{
return AppDomain
.CurrentDomain
.GetAssemblies()
.SelectMany(assembly => assembly.GetTypes());
}
, , , appdomains, , .
, , .