Can I use List of objects as Dictionary Keys ?
<pre><code>// No overrides required .. let CLR take care of equal and hashcode.
Class Foo {public Name{get; set;} public Address{get; set;}} 

Dictionary&lt;List&lt;Foo&gt;, int&gt; map = new Dictionary&lt;List&lt;Foo&gt;, int&gt;();
</code></pre>

<p>Question:</p>

<p>Is this code look alright ? I understand that to be a key in the Map, Foo needs to override equals and hashcode methods - either override both or none.</p>

<p>I was wondering what about List of objects as keys ? What does equality means when it comes to List ? is the map defined above safe from "object-lost-in-the-map" problem ?</p>

<p>-Karephul</p>
