List<> remove item problem
<p>We are  using <code>List&lt;object&gt;</code> type as datasource for dropdownlist. </p>

<p>Process flow:</p>

<ol>
<li>Assign value (<code>List&lt;object&gt;</code>) to the session in the pageload event(<code>!ispostback</code>).</li>
<li>Reterive value from session in <code>ddl_SelectedIndexChanged</code> event </li>
<li>Remove a particular item from the list and bind to the ddl</li>
</ol>

<p>Code:</p>

<pre><code>List&lt;Loc&gt; locList = new List&lt;Loc&gt;();
locList =  (List&lt;Loc&gt;)Session["Loc"];
locID = "xxx";

locList.RemoveAt(locList.FindIndex(FindLocation));
</code></pre>

<p>Problem:</p>

<p>Item getting removed from the base source also (session).</p>
