コード例 #1
0
        public IEnumerator <string> GetPagingEnumerator()
        {
            var           skip = 0;
            List <string> pageResults;

            do
            {
                pageResults = client.GetRangeFromList(listId, skip, skip + PageLimit - 1);
                foreach (var result in pageResults)
                {
                    yield return(result);
                }
                skip += PageLimit;
            } while (pageResults.Count == PageLimit);
        }