Calling Distinct() on DataRow collection
<p>Trying to find unique rows in a data table using Distinct() extension method. Some rows contain exactly the same data, but for some reason, the hash code for these rows are different from each other.</p>

<p>I wrote a comparer class implementing <code>IEqualityComparer&lt;DataRow&gt;</code>, however, I think what I'm doing in <code>GetHashCode()</code> is cheesy and nasty.</p>

<p>The reason I've done it this way is because <code>Equals()</code> never gets called unless the hashcodes are the same (Expected behaviour)</p>

<pre><code>class RowValidationComparer : IEqualityComparer&lt;DataRow&gt;
        {
            public bool Equals(DataRow x, DataRow y)
            {
                return x.Field&lt;string&gt;("MyField").Equals(y.Field&lt;string&gt;("MyField"));
            }

            public int GetHashCode(DataRow obj)
            {
                typeof(DataRow).GetHashCode();
            }
        }
</code></pre>
