title: Which IEqualityComparer is used in a Dictionary?
body: <p>Lets say I instantiate a dictionary like this</p>
  
  <pre><code>var dictionary  = new Dictionary&lt;MyClass, SomeValue&gt;();
  </code></pre>
  
  <p>And MyClass is my own class that implements an <code>IEqualityComparer&lt;&gt;</code>. </p>
  
  <p>Now, when I do operations on the dictionary - such as Add, Contains, TryGetValue etc - does dictionary use the default <code>EqualityComparer&lt;T&gt;.Default</code> since I never passed one into the constructor or does it use the IEqualityComparer that MyClass implements?</p>
  
  <p>Thanks</p>