1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
using System; using System.Collections.Generic; public class Test<T> { public void Invalid (T item) { Other (new T[] {item}); } public void Other (IEnumerable<T> collection) { } } class X { public static void Main () { } }