How can I programmatically do method overload resolution in C#?
问题 When the C# compiler interprets a method invocation it must use (static) argument types to determine which overload is actually being invoked. I want to be able to do this programmatically. If I have the name of a method (a string ), the type that declares it (an instance of System.Type ), and a list of argument types I want to be able to call a standard library function and get back a MethodInfo object representing the method the C# compiler would choose to invoke. For instance if I have