Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / June 2005

Tip: Looking for answers? Try searching our database.

App structure ideas

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 20 Jun 2005 00:15 GMT
Hi

I am writing a vb.net app to which I would like to allow people to write
add-ins by exposing various parts of the app. What sort of structure I am
looking for to accomplish the exposure to third parties? I am new to .net
and this is going to be my first serious app.

Thanks

Regards
Bob Powell [MVP] - 20 Jun 2005 08:07 GMT
The accepted technique for plugins in .NET apps is to create a custom
attribute with which you decorate classes that participate in the plugin
scheme. When loaded, the application can look for and dynamically load DLLs
in a given directory or in the application local directory and use
reflection to ascertain which of the classes contained in the DLLs are
tagged with the attribute. For consistency the base class of the plugin can
be an abstract class that you create for the purpose of establishing the
plugin behaviour or, my personal favourite, the plugin can implement a given
interface or set of interfaces. The latter method is cleaner in my opinion
because you don't have to force anything except the interface onto the
implementor of the plugin.

Signature

Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

> Hi
>
[quoted text clipped - 6 lines]
>
> Regards

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.