get sublist based on index C# code example
Example: c# list get sublist
myList.GetRange(firstIndex, Count);
// or
myList.GetRange(firstIndex, lastIndex - firstIndex);
myList.GetRange(firstIndex, Count);
// or
myList.GetRange(firstIndex, lastIndex - firstIndex);