Patric_J wrote: Ugly indexing is normally not needed in my experience. I beg to differ. More often than not these days, I find myself writing stuff like this:
protected void DoSomething(MySortedStringList sortedElements, string[] buffer)
{
int i = 0;
foreach (string element in sortedElements)
{
buffer[i++] = element;
}
}
But that's what happens when having Hashtable as favourite collection :rolleyes: "God doesn't play dice" - Albert Einstein "God not only plays dice, He sometimes throws the dices where they cannot be seen" - Niels Bohr