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?
Before you can interact with the
FirstThreadsvariable, you need to make thevariable refer to a
List<Thread>instance, like this:You can also write