GetMethod for generic method

Viewed 41097

I'm trying to retrieve MethodInfo for Where method of Enumerable type:

typeof (Enumerable).GetMethod("Where", new Type[] { 
     typeof(IEnumerable<>), 
     typeof(Func<,>) 
})

but get null. What am I doing wrong?

2 Answers
Related