class Program
{
static void Main(string[] args)
{
var res = Delegate.CreateDelegate(typeof(Action<string, string>), typeof(Person).GetMethod("GetName"));
res.DynamicInvoke("test1", "test2");
Console.Read();
}
}
public class Person
{
public static void GetName(string first, string second)
{
Console.WriteLine("test");
}
}