using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace EC.Utils
{
///
/// ExtList
/// 版 本:V3.0.0
/// 版 权:EasyCode
/// 作 者:LXC
///
public static class ExtList
{
///
/// List分页
///
/// 表数据
/// 分页参数
///
public static List GetPage(List data, PageInput pagination)
{
return data.Skip(pagination.currentPage * pagination.pageSize - pagination.pageSize).Take(pagination.pageSize).ToList();
}
///
/// IList转成List
///
///
///
///
public static List IListToList(IList list)
{
T[] array = new T[list.Count];
list.CopyTo(array, 0);
return new List(array);
}
}
}