I have this code and I am wondering. Could this be changed to use the new C# expression as a way to eliminate the need for the break;
switch (reposition)
{
case (int)POS.First: cIndex = 0; break;
case (int)POS.Last: cIndex = cIndexLast; break;
case (int)POS.Prev: cIndex--; break;
case (int)POS.Next: cIndex++; break;
}
reposition = null;
Response for Hogan