• Welcome to Jose's Read Only Forum 2023.
 

C# - Reflection and Dynamic Class Loading

Started by Edwin Knoppert, July 30, 2010, 12:19:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Edwin Knoppert

Maybe we have a clever c# user over here?
In c# i need to create a new object from a class which is referenced in the solution.
My exe project has a reference to a different project and for debugging purposes i want to try to load the code instead of dynamically the assembly.
Examples shown here return null probably because the code is in another project.

I am trying:
http://msdn.microsoft.com/en-us/library/ms227224(VS.80).aspx

So normally we attempt to load (enum) an assembly file and will be executed, this all works fine already (strong typed as well).
In my exe code i can instantiate the class via the normal "as new ....()" syntax but not via the type object.
For debugging i wanted to avoid the assembly load but if you know a way to debug the assembly in the codestepper that would be ok as well.

Edwin Knoppert

This topic may be moved to the c# section if you like.
Maybe it'll get noticed again :)