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 8829501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:50:49+00:00 2026-06-14T07:50:49+00:00

I could have sworn there are several tutorials on this, but I can’t seem

  • 0

I could have sworn there are several tutorials on this, but I can’t seem to find them, and can’t remember how I did it in the past (been years and with a different company)…

I’ll be working in C#. I think what I did was create an interface with the needed properties/methods for the app and plugin to communicate back and forth…

Run the app, and scan a folder for the plugins, load the plugin and interact with it via the previously mentioned interface…

If the above is on the right track, can someone point me to an example of loading the plugin or better, a tutorial?

Thanks!

  • 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-14T07:50:51+00:00Added an answer on June 14, 2026 at 7:50 am

    There’s plenty of ways for it, but simple:

    Scan for folder :

    string[] files = System.IO.Directory.GetFiles("yourpath", "*.dll");
    

    Then load assembly (for each file above)

    Assembly.Load or Assembly.LoadFrom
    

    From Assembly to enumerate types:

    Type[] types = assembly.GetTypes();
    

    Check if type implements your interface

    Type t;
    YourInterface.IsAssignableFrom(t);
    

    Then to instanciate:

    object o = Activator.CreateInstance(t);
    YourInterface iface = (YourInterface)o;
    

    That’s about it, exception handling and other bits omitted of course

    Some DI packages can do lot of that work for you, depending on your use case they can be very useful or just overkill.

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

Sidebar

Related Questions

I may be completely imagining this, but I could have sworn there was a
I could have sworn I saw an article on this recently, but I can't
I could have sworn I’d read a question about this before, but I can’t
Maybe I'm going insane, but I could have sworn that there was an PHP
I am sure this could have been answered but I couldn't actually find a
I could have sworn this was a new feature in iOS 5, but I
I've seen them before, but I can't seem to find them. The .baml files
I could have sworn I've done this before but cannot figure it out again.
I could have sworn this worked differently in previous versions of iOS, but as
I could have sworn there was a way to see Rails test output in

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.