using System.Collections.Generic; using System.Collections.ObjectModel; public class MyCollection : Collection { public void Foo() { T t = Items[0]; } } public class C { public static void Main () {} }