How to implement a equality method?
<p>Given the examples below, how would I make <code>clientList</code> contain 5 clients in the second example?</p>

<p>I want the <code>list.Contains()</code> method only check the <code>FName</code> and <code>LName</code> strings and disregard the age when checking for equality.</p>

<pre><code>struct client
{
    public string FName{get;set;}
    public string LName{get;set;}
    public int age{get;set;}
}
</code></pre>

<p>Example 1:</p>

<pre><code>List&lt;client&gt; clientList = new List&lt;client&gt;();

for (int i = 0; i &lt; 5; i++)
{
    client c = new client();
    c.FName = "John";
    c.LName = "Smith";
    c.age = 10;

    if (!clientList.Contains(c))
    {
        clientList.Add(c);
    }
}

//clientList.Count(); = 1
</code></pre>

<p>Example 2:</p>

<pre><code>List&lt;client&gt; clientList = new List&lt;client&gt;();

for (int i = 0; i &lt; 5; i++)
{
    client c = new client();
    c.FName = "John";
    c.LName = "Smith";
    c.age = i;

    if (!clientList.Contains(c))
    {
        clientList.Add(c);
    }
}

//clientList.Count(); = 5
</code></pre>
