Read DLL's dynamically and interact with them

Posted on 2004-08-28
Last Modified: 2010-04-23
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!
Question by:bobnunny
LVL 37

Accepted Solution

gregoryyoung earned 250 total points
ID: 11922070
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

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Calling web service and its methods dynamically 2 60
Help with Syntax 9 37 Move a class from Solution Items to a project 2 24
cannot connect to sqlserver 8 30
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
In a recent question ( here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question