2

I have a C# program and I want to make it able to load addons. Addons are like that: You pass a control or form to it and it makes some changes to them.

Is there anyway to have dll addons and load them dynamically at runtime and pass controls?? If not Any Idea? What should I do?

Kyle Trauberman
  • 25,414
  • 13
  • 85
  • 121
Amir
  • 820
  • 9
  • 30

3 Answers3

3

Look into MEF to load and import the assemblies and the controls.

Kyle Trauberman
  • 25,414
  • 13
  • 85
  • 121
2

Look at Management Extensibility Framework.

Dennis
  • 37,026
  • 10
  • 82
  • 150
  • Thanks 4 ur answer! Sry there must be just one answer to tick but yours was also great! ;) – Amir May 30 '12 at 20:04
1

Yes that's possible and it works similar to other programming languages: Load the library and call methods to get names and stuff. One possible solution can be found in this question.

Community
  • 1
  • 1
Mario
  • 35,726
  • 5
  • 62
  • 78