SortedBindingList Find() in version 2.1.1 no longer returns -1 when item not in the list

SortedBindingList Find() in version 2.1.1 no longer returns -1 when item not in the list

Old forum URL: forums.lhotka.net/forums/t/1848.aspx


GlennMiller posted on Monday, November 27, 2006

Prior to CSLA version 2.1.1, if you call SortedBindingList Find() method on an item that is not in the list, -1 was returned to signify nothing was found. The Find() has been changed in version 2.1.1 to "return the adjusted index value from the Find() method, rather than the index value from the underlying list" unfortunately it now returns 0 instead of -1. The lists are still 0 based correct? Is this a bug?

Thanks!

Copyright (c) Marimer LLC