I have a data mapping application in which I need to implement custom functions as plugins. The name of the custom method that I need to execute will also appear in the mapping data. I know that I can call a method using the invoke command; but how can I guarantee that each method has a corresponding signature?
First of all, I don’t think you should allow arbitrary names for overridden methods - just define the interface and save it simply.
You can define an interface with a method that returns a delegate to a method that does this work.
, MethodInfo , .
, , . . , ( , ) . , , , , . , , .
.
GetMethod(), MethodInfo .
.GetParameters(), , .
.GetParameters()
Source: https://habr.com/ru/post/1714142/More articles:What is the best way to develop large WCF Duplex services with a Silverlight application? - architectureDelete file after time in PHP - exeSearch in which area contains a point based on coordinates - mathUse jQuery to wrap groups of elements - javascriptControlling input focus in an application with several kinds of MFC SDI - dynamicCompiling a C ++ program using POSIX AIO lib on Linux - linuxHow to replace multiple spaces with one space? - cCan I use Sinatra with IronRuby? - sinatra.htaccess mod_rewrite: rewriting a request to a path - .htaccessЕсли внешний файл (например, JavaScript или CSS) включен дважды (или более) на страницу, будут два (или более) веб-запроса? - performanceAll Articles