How can I get a class into a variable to call function and get properties?
I have been told to look into reflection but I don’t get how it’s done when the DLL was not known at compile time.
To be clear: I have a ‘main’ class which loads an DLL and I want to create an instance of a class within the DLL and directly get properties.
You should do something like this:
EDIT
Naturally, the
DLLhas to be a managed DLL (so written in.NETlanguage)I didn’t compile this, honestly, but basically this is an idea of how to do that.
Here also an example, that may help.