csharp/0x1000000/SqExpress/SqExpress/DataPage.cs

DataPage.cs
using System;
using System.Collections.Generic;
using System.Linq;

namespace SqExpress
{
    public clast DataPage
    {
        internal DataPage(IReadOnlyList items, int offset, int total)
        {
            this.Items = items;
            this.Offset = offset;
            this.Total = total;
        }

        public IReadOnlyList Items { get; }

        public int Offset { get; }

        public int Total { get; }

        public DataPage Select(Func selector)
        {
            return new DataPage(this.Items.Select(selector).ToList(), this.Offset, this.Total);
        }
    }
}