using System.Collections.Generic;
using System.Collections.ObjectModel;
public static void Main()
IList<Foo> list = new List<Foo>() {
IReadOnlyCollection<Foo> readOnlyList = new ReadOnlyCollection<Foo>(list);
public static void Process(IEnumerable<Foo> list)
Console.WriteLine(foo.Id);
public int Id {get; set;}