serialized generic collections
<p>I have serialized XML file. I am reading the contents which is of type <code>Dictionary&lt;string,string&gt;</code> and <code>List&lt;int&gt;</code>.</p>

<p>How can I retrieve these 2 objects.
I tried to use ArayList to hold these 2 objects ,but since arraylist is not generic type, it gave exception.Please help..</p>

<pre><code>if (fs.Length != 0) 
{ 
    BinaryFormatter bf = new BinaryFormatter(); 
    ArrayList dstemp = (ArrayList)bf.Deserialize(fs); 
    // Dictionary&lt;string,string&gt; tempRD = (Dictionary&lt;string,string&gt;) TempList[0]; 
    // List&lt;int&gt; shipto = (List&lt;int&gt;)TempList[1]; 
    this.currentFormData.LinkToShipToList = (List&lt;int&gt;)bf.Deserialize(fs); 
} 
fs.Close();
</code></pre>
