PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
SortedList in the CF ?
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
SortedList in the CF ?
![]() |
SortedList in the CF ? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
is there a chance to get a SortedList ( like in System.Collections.SortedList ) working in the CF? Any ideas? Regards Carsten |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Am Sat, 05 Feb 2005 11:07:15 +0100 schrieb Carsten Marx
<Carsten.Marx@uni-konstanz.de>: > Hi, > is there a chance to get a SortedList ( like in > System.Collections.SortedList ) working in the CF? > > Any ideas? To my mind there is no SortedList in CF 1x available. But you could implement a simple algorithm for sorting like Bubble-Sort. If you need higher performance have a look at QuickSort, TrippleSort or HeapSort. - Andreas Wolff |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Carsten, search the archives for a number of pointers:
http://groups-beta.google.com/group...arch+this+group Cheers Daniel -- http://www.danielmoth.com/Blog/ "Carsten Marx" <Carsten.Marx@uni-konstanz.de> wrote in message news:Ohh34p2CFHA.3368@TK2MSFTNGP10.phx.gbl... > Hi, > is there a chance to get a SortedList ( like in > System.Collections.SortedList ) working in the CF? > > Any ideas? > > Regards > Carsten |
|
|
|
#4 |
|
Guest
Posts: n/a
|
In addition to all replies you may use ArrayList with implemented your
own IComparer instead: public class MyComparer : IComparer { int IComparer.Compare(Object x, Object y) { return((Item)x).Name.CompareTo( ((Item)y).Name); } } .... myArrayList.Sort(new MyComparer()); Sergey Bogdanov http://www.sergeybogdanov.com Carsten Marx wrote: > Hi, > is there a chance to get a SortedList ( like in > System.Collections.SortedList ) working in the CF? > > Any ideas? > > Regards > Carsten |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

