Код: Выделить всё
var list = new List();
IEnumerable x = list;
List y = list;
IEnumerable z = list;
Подробнее здесь: https://stackoverflow.com/questions/268 ... f-generics
Код: Выделить всё
var list = new List();
IEnumerable x = list;
List y = list;
IEnumerable z = list;