Say i have a class called CustomModule1 which inherits from an abstract base class called Module.
All 'CustomModules' will be in thier own dll and my main application will load them from a folder at run time.
At this point i wish to store information about the CustomModules by getting their string ModuleName (with is different for each module) without creating an instance of the module (statically).
I can't think of away todo this, as I'm loading the CustomModules as Module types, so the static string ModuleName will have to be defined in the ModuleClass.
I need the CustomModule to override this static variable so it gives its own unique name, but you cannot override static properties or methods.
Any thoughts?
All 'CustomModules' will be in thier own dll and my main application will load them from a folder at run time.
At this point i wish to store information about the CustomModules by getting their string ModuleName (with is different for each module) without creating an instance of the module (statically).
I can't think of away todo this, as I'm loading the CustomModules as Module types, so the static string ModuleName will have to be defined in the ModuleClass.
I need the CustomModule to override this static variable so it gives its own unique name, but you cannot override static properties or methods.
Any thoughts?