C# List implementation : <p>I am not very good at data structures but I wanna  try to implement in C# List class with method Add that's the only method that I need and I can't figure it out what to do next I only have this piece of code</p>

<pre><code>public class myList&lt;T&gt; : List&lt;T&gt;
    {
        public T[] items;
        public int size;

        public myList()
        {

            items = new T[0];
        }
        public myList(int dim)
        {
            items = new T[dim];
        }


        public new void Add(T item)
        {
            items[size++] = item;

        }
    }
</code></pre>

<p>I am also use inheritance to List because I don't want to implement other things(interfaces).With this code that I have something is missing when I am trying to see what I add to the list(foreach) I can't see nothing. Can anyone help me please?</p>
