|
using System.Collections.Generic;
using TaskManagerDemo.ExampleServiceReference;
namespace TaskManagerDemo.Utility
{
public class CityComparer : IEqualityComparer<CityZipCode>
{
public bool Equals(CityZipCode x, CityZipCode y)
{
return x.City.Equals(y.City);
}
public int GetHashCode(CityZipCode obj)
{
return obj.City.GetHashCode();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
George Henry has worked as a software developer for more than 20 years. He is currently employed by Concur in Bellevue, Washington, USA.