|
-
December 23rd, 2010, 12:14 PM
#1
Auto-discovery of .DLLs that contain a member function?
I have a project where I have a main assembly and a bunch of support sub-assemblies. Each sub-assembly has exactly the same member functions (each is designed to work with a different data source).
I would like my main assembly to be able to "discover" the sub-assemblies that are included in the program install folder.
So, for instance, if I have 4 sub-assembly .DLLs (say "sub1.dll", "sub2.dll", "sub3.dll", "sub4.dll") that each have a function I could search for (such as "do_something()" I would like to be able to have the main assembly discover them and return maybe a List<> of the assembly names.
Is this possible?
The reason is I frequently add new sub-assemblies but don't want to have to hard-code their names into the main assembly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|