Creating delegates dynamically with parameter names
问题 Hi I'm trying to create a function that dynamically creates a delegate with the same return value and the same parameters as a MethodInfo it receives as parameter and also and this is very important the same parameter names! What I did so far is create a function that returns a lambda that receives the same parameter types and has the same return value as the MethodInfo but it doesn't have the parameter names: static void Example() { Person adam = new Person(); MethodInfo method = typeof