homobinary
homobinary

Reputation: 77

How to create and use DLL modules in C#? Not DLL assembles

I want to create an application that using DLL modules that dynamically connects to application. For example: create a special folder with DLL modules, user can add new modules, program at startup scan this folder and connect it. So I cannot compile like csc /out:TestCode.exe /reference:MathLibrary.DLL TestCode.cs because I have not DLL name. There will be many DLL's with definetly structure: Load(), Free(), Settings(), Name() and so on.

Also i want to know, is there an function with name XXX in this DLL (for optional functions, ex. Settings() may exist and may not).

Language: C# for application and DLL.

Like a plugins in application. In C this is easy.

Upvotes: 0

Views: 749

Answers (1)

devdigital
devdigital

Reputation: 34359

Have a look at the Managed Extensibility Framework.

Upvotes: 2

Related Questions