Why does this not compile?
public interface IConcrete { } public class Concrete : IConcrete { } public class Runner { public static void Main() {
foreach (var item in myList) DoStuffWithInterface(item);
or
public void DoStuffWithInterface(IList concrete) { }
var myNewList = myList.Cast();