Pass any type of list to another class
<p>I'm building a dynamic search form and I want to send a list to the search form class (any type of list). I've searched here and i didn't find any answer.</p>

<h2>First Class:</h2>

<pre><code>public class myfirstclass
{
    Search search = new Search(List&lt;anyType&gt;);
    search.show()
}
</code></pre>

<h2>search form class:</h2>

<pre><code>public partial class Search : Form
{
    public search(list&lt;anytype&gt; mylist)
    {
    }
}
</code></pre>