implementing the IComparable Interface on two string fields
<p>How do I implement the IComparable Interface on two string fields?</p>

<p>Using the Person class example below. If Person objects are added to a list. How do I sort the list based on Surname first THEN Forename?</p>

<pre><code>Class Person
String Surname
String Forname
</code></pre>

<p>Something like? :</p>

<pre><code>myPersonList.Sort(delegate(Person p1, Person p2)
                   {
                       return p1.Surname.CompareTo(p2. Surname);
                   });
</code></pre>
