I'm using the Type.GetType function to get reflection info about a class. if I use that function from my app all works ok, but now i need to call that function from an external dll previously loaded from my app.
This code works fine if the called from the main app
Type myType1 = Type.GetType("MyNameSpace.MyType");
but fails (myType1 returns nothing) if that code is put inside of a dll (that dll is loaded from my app)
The question is how i can use Type.GetType
to load a type which exist in the Exe which load the dll?
EDIT :
I think which the question can be reformulated like how i can load a type from the assembly which loads my dll?
MyEXE
Myclass
MyDll (loaded by MyExe)
Type.GetType //only get types of the MyDll assembly, how i can access the Myclass type which is defined on MyExe?