C# How to use GetMethod to find a specific overload with a generic out parameter?
问题 Everything is in the title, but let me put some code. Let's say we have a class with 2 methods with the same name: class MyClass { /// <summary> /// The first version /// </summary> public TItem Foo(long param1) { ... } /// <summary> /// Overload with a generic parameters /// </summary> public bool Foo<TItem>(out TItem item, long param1) { ... } } An we need to get the MethodInfo for the second 'Foo' method which has a generic out parameter: public class AnotherClass { public MethodInfo