Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8611401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:22:01+00:00 2026-06-12T04:22:01+00:00

I wrote an application in C# and added a kind of API for it.

  • 0

I wrote an application in C# and added a kind of API for it.
With this API you can write plugins as dll´s which underlie some interface rules.

I want to make it possible to open the dll file via OpenFileDialog and use its content.
My API is a managed library, so I just add a reference, but I want to use the dll without knowing the name of the dll file. Also the namespace is another each library.

How do I load a dll and run the code within it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:22:02+00:00Added an answer on June 12, 2026 at 4:22 am

    What you are describing is commonly termed a Plugin System. Googling for something like “Create Plugin system using C#” will probably give you lots of information such as the below:

    http://www.codeproject.com/Articles/4691/Plugin-Architecture-using-C

    The basic idea is:

    • Define an interface that your program implements to allow a plugin to get information from your program.
    • Define an interface that all plugins will implement, to allow your program to call the plugin’s methods that will do something.
    • Put those interfaces in a separate dll that’s referenced by your program and by any plugin dlls.
    • Provide some way of finding dlls with types implementing your plugin interface, e.g. your OpenFileDialog.
    • Load the dll and find types that implement your plugin interface (using reflection).
    • Instanciate those types using reflection.
    • Call the methods on those types via the interface, as appropriate.

    Regarding managed/non-managed. A managed DLL is one that is built/coded using the .net managed runtime. This would be things coded in a .net language such as c#.

    A non-managed dll is more or less anything coded in a different language.

    What you referred to as a non-managed dll I would refer to as a dynamically loaded managed dll. I.e. it’s still a managed dll (coded in a .net language), but isn’t loaded until the program is already running.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote an application which allows people to contribute plugins to extend the functionality.
I wrote an application which uses spring framework. now i wanted to write a
I wrote a webservices application over django. This application can be found as several
I added a table to a database that my application uses and wrote some
I'm trying to do some kind of voip application using UDP.I have added RSA
i just added a launch image to an application i wrote. According to several
We've added a feature for our users to write C# scripts for the application
I wrote an application using ASP.NET MVC, in this application I have an Index
I've an application which is basically a designer with preloaded controls where you can
I wrote a small loop which added 10,000 documents into the IndexWriter and it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.