Hi Member,
Think it this way - how should the Default
Distinct
method "know" how to compare your objects (of type
SPList
) and then decide which are distinct? (it will use the Default comparer which will not work for you - maybe see the msdn documentation for Distinct?)
Just use the overload list.Distinct with an IEqulaityComparere or implement IEquatable for your SPList class.
http://msdn.microsoft.com/EN-US/library/bb348436(v=vs.110).aspx