In the SortedList you have the Values collection which can be referenced by
an ordinal position. I guess you could use your index value with that to
return the desired value.
Mark Dawson
http://www.markdawson.org
"john conwell" wrote:
[color=blue]
> Sorry, i should have been more specific. I'm talking about the 2.0 Generic
> SortedList. The 1.1 SortedList does have a GetByIndex. the 2.0 Generic
> SortedList does not.
>
> "Mark R. Dawson" wrote:
>[color=green]
> > Hi John,
> > the SortedList type has a GetByIndex method which allows you to enter the
> > ordinal position of an item in the list and retrieve the value stored at that
> > position.
> >
> > Mark Dawson
> >
http://www.markdawson.org
> >
> >
> > "john conwell" wrote:
> >[color=darkred]
> > > So you pass in the Key and it returns the array index of the key. but you
> > > cant do array index lookups. the indexer of the sortedlist does a binary
> > > search based on the key. So whats the pointof this method? is there a way
> > > to return a array item based on the index?[/color][/color][/color]