Dictionary<Key,Value> - key cannot be class?
<p>I'm using a <code>Vector3</code> - contains properties <code>X</code>,<code>Y</code>,<code>Z</code> as a key in a dictionary. Lets say I already added to the dictionary (<code>myDic</code>) a <code>Vector3</code> with values (0,0,0).</p>

<p>Then I do this:</p>

<pre><code>Vector3 vec = new Vector3(0,0,0);
if (!myDic.ContainsKey(vec))
{
    //Should never reach here.
}
</code></pre>

<p>I also created overload operators for <code>==</code> and <code>!=</code> for the <code>Vector3</code> class.</p>

<p>It reaches there anyways. Is there a problem when using an object like a Vector3 to be the key for a dictionary?</p>
