Exemplo n.º 1
0
    static void Main()
    {
        Base obj = new Derrived();

        obj.f();
        Console.WriteLine("<%END%>");
    }
Exemplo n.º 2
0
        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
        }