I have a list in C#. Given two number – the starting position and the number of records – how can I select from the middle of a list? What kind of collection should I use?
E.g. Starting position = 10. Number of records = 20. Total number of records in list = 50. I want to get back the objects in elements 10 to 29.
Assuming you’re using .NET 3.5: