Remember, that variable a
in your code is a query itself. It is not result of query execution. When you are using Immediate Window to watch query (actually that relates to queries which have deferred execution otherwise you will have results instead of query), it will always show
{System.Linq.Enumerable.TakeIterator<int>}
count: 0
source: null
You can verify that with this code, which obviously has enough items:
int[] items = { 1, 2, 3, 4, 5, 6, 7 };
var a = items.Skip(2).Take(3);
So, you should execute your query to see results of query execution. Write in Immediate Window:
a.ToList()
And you will see results of query execution:
Count = 3
[0]: 3
[1]: 4
[2]: 5
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…