sortedbindinglist problem

sortedbindinglist problem

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


dean posted on Saturday, August 19, 2006

The sortedbindinglist code for indexof is :

Public Function IndexOf(ByVal item As T) As Integer Implements System.Collections.Generic.IList(Of T).IndexOf
            Return mList.IndexOf(item)
    End Function

I beleive it should check if sorted and if it is offer the sortedindex as follows:

Public Function IndexOf(ByVal item As T) As Integer Implements System.Collections.Generic.IList(Of T).IndexOf
        If mSorted Then
            Return SortedIndex(mList.IndexOf(item))
        Else
            Return mList.IndexOf(item)
        End If

    End Function

Anybody seen this issue?

Dean

RockfordLhotka replied on Saturday, August 19, 2006

Yes, that is correct and it will be fixed in version 2.1.

Copyright (c) Marimer LLC