static void Main() { Base obj = new Derrived(); obj.f(); Console.WriteLine("<%END%>"); }
Test() { _items = new Collection <Derrived>(); _array = new Derrived[10]; _array[0] = new Derrived(); _container = new TestContainer <Derrived>(); //_list = new List<Derrived>(); //ERROR //IBase[] items = EnumerableEx.Return(new BaseStruct()).ToArray(); //ERROR }