Want to achieve a dynamic load DLL function, to achieve plug-in development. Ask for a recommended plan. Language C-sharp.

for example, we do an extended interface. Let several other third-party applications implement this interface, and then send us a dll. Put it in a directory and you can call the method in this dll dynamically. Do you have any good suggestions? Thanks!


refer to "How to: Load Assemblies into an Application Domain"
https://docs.microsoft.com/en.

using System;
using System.Reflection;

public class Asmload0
{
    public static void Main()
    {
        // Use the file name to load the assembly into the current
        // application domain.
        Assembly a = Assembly.Load("example");
        // Get the type to use.
        Type myType = a.GetType("Example");
        // Get the method to call.
        MethodInfo myMethod = myType.GetMethod("MethodA");
        // Create an instance.
        object obj = Activator.CreateInstance(myType);
        // Execute the method.
        myMethod.Invoke(obj, null);
    }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf4267-3171a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf4267-3171a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?