I have a variable FirstThreads of type List<Thread>
.
I am trying to do the following, but FirstThreads is always null.
FirstThreads.AddRange(Threads.Skip<Thread>(PageIndex * PageSize)
.Take<Thread>(PageSize));
I can't do this:
FirstThreads = FirstThreads.AddRange(Threads.Skip<Thread>(PageIndex * PageSize)
.Take<Thread>(PageSize));
Do you have any idea how to solve this?