私はIEnumerable<T>
を持っていますので、Enumerable.Contains
メソッドを反映させたいと思います。私は文法の権利を得るのに苦労しています。ここに私が現在持っているものがあります:一般拡張メソッドのMethodInfoを取得するには?
var containsMethod = typeof(Enumerable).GetMethod("Contains",
new[] {
typeof(IEnumerable<T>),
typeof(T)
});
これはちょうどnullで戻ってきます。
MethodInfo
を取得する正しい方法は何ですか?
[重複した正しいジェネリックメソッドの選択](http://stackoverflow.com/questions/3631547/select-right-generic-method-with-reflection) – nawfal