Removing items from collection class c#
<p>I have a collection class with books. I have a remove method that i want to use, and that is after ive added the books. Here are my books:</p>

<pre><code>myList&lt;Book&gt; lst = new myList&lt;Book&gt;();
        lst.addItem(new Book("Dumas", "Alexandre", "The Count Of Monte Cristo", 1844));
        lst.addItem(new Book ("Clark", "Arthur C",  "Rendezvous with Rama", 1972 ));
        lst.addItem(new Book("Dumas", "Alexandre", "The Three Musketeers", 1844)); ;
        lst.addItem((new Book ("Defoe",  "Daniel",  "Robinson Cruise",  1719)));
        lst.addItem(new Book ("Clark",  "Arthur C",  "2001: A space Odyssey",  1968 ));
</code></pre>

<p>My remove method looks like this:</p>

<pre><code>public void removeItem(T item)
{
    Array.Resize(ref items, items.Count() -2);
}
</code></pre>

<p>So, if I want to remove for example the first book from the list, i tried to do :</p>

<pre><code>lst.removeItem(0);
</code></pre>

<p>But i get an error saying that "No overload for method 'removeItem' takes 0 arguments"</p>

<p>What im I doing wrong?</p>
