Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with dynamically loaded class
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01335836
Message ID:
01335953
Views:
12
>>I have created an AddIn class that holds the addin object and additional properties. Each addin will then be instantiated into the AddIn class which is then stored in a collection. Most of this is already in place and working.
>>
>>I wrote the following code which dynamically loads a class from an external DLL. The GetModule method works fine and creates and stores an instance of the desired class.
>
>>The problem is that I need to be able to set properties on the addin, and I'm unsure how to do all this. In the code below, the line where the database is being set won't compile.
>
>What type is the oClass property? Object? You will need to cast oClass to the correct type or interface before accessing it's properties (so the compiler knows what type/interface is available).

But how do I specifiy what the correct type is? Thee class is in a different assemby.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform