i've a list collection which looks like
myList[0].innerList[0 to 50]
myList[1].innerList[51 to 100]
myList[2].innerList[101 to 120]
the myList can go as per the size, at max there are 50 objects in the innerList. I get the innerList as a response from an API where the page size is set to 50.
i want my new list to have all these 0 - 120 objects in a single list like
newList[0 to 120]
i'm trying using LINQ like this
var newList = from reg in myList
select reg.innerList.ToList();
But i get
newList[0].[0 to 50]
newList[1].[51 to 100]
Can anyone help me with the LINQ ?