I have created a list of Range objects in C#
private List<Excel.Range> _dataCells = new List<Excel.Range>();
If am currently adding a reange to the list using the following:
if (_dataCells.Contains(_excel.Selection) == false)
{
_dataCells.Add(_excel.Selection);
}
This ends up with a List that has duplicate values. How can I use the Contains method on a List of complex types?