How can I use Equals or hashcode in my following program
<p>I want to fetch the details of manager from manager class if at run time I give kinid of employee from the employee class. How can I do this using Equals or Hashcode?</p>

<pre><code>public class employee
{
    public string empname { get; set;}
    public string location { get; set; }
    public int kinid { get; set; }
    public double magkin { get; set; }
}

public class manager
{
    public string magname { get; set; }
    public double magkin { get; set; }
}

Dictionary&lt;employee, manager&gt; relation = new Dictionary&lt;employee, manager&gt;();
</code></pre>
