Read DLL's dynamically and interact with them

I know this is rather involved, but I'd like to know of a way (Reflection maybe?) to read a folder of DLL's that meet predefined standards (specific properties, methods, and events MUST be overloaded and present) and take actions based on them.  For example, if I have a DLL called Customer with New, Locator, and Entry methods, how can I get a master program to sense it's there and USE those methods.  Thanx!
bobnunnyAsked:
Who is Participating?
 
gregoryyoungConnect With a Mentor Commented:
you would have to use Reflection ...

The Assembly object lets you open the Assembly ...
You can then use reflections specifically the Type object to run through the objects in the assembly.

I would personally recommend using interfaces to define the functionality in your plugins ...

In fact here is a complete code example using interfaces http://www.developerfusion.com/show/4371/1/redir/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.