Jose's Read Only Forum 2023

General Category => General Discussion => Topic started by: Edwin Knoppert on July 30, 2010, 12:19:57 PM

Title: C# - Reflection and Dynamic Class Loading
Post by: Edwin Knoppert on July 30, 2010, 12:19:57 PM
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.
Title: Re: C# - Reflection and Dynamic Class Loading
Post by: Edwin Knoppert on August 07, 2010, 07:43:43 PM
This topic may be moved to the c# section if you like.
Maybe it'll get noticed again :)