In the example you only compare the strings, so your duplicate values may differ in the other fields. Or maybe it's some Unicode issue because you use String.CompareTo instead of String.CompareOrdinal. If you could come up with some minimal but complete example demonstrating the problem, it would be easier to make a specific diagnosis.

By on 12/19/2008 12:15 AM ()

Thanks but I've just solved it, in my data set there were items with the same string and different casing and I was unaware of that. By the way the comparison only on the string was on purpose ;)

Best Regards

By on 12/19/2008 2:12 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper