文章 PagedList(T) 类

  • 命名空间: Limyee.Extensibility.Api.Entities.Version1
  • 程序集: Limyee.Api.dll

定义

class PagedList<T>
{
	int Count { get; }
	IList<Error> Errors { get; }
	bool IsReadOnly { get; }
	T Item { get; set; }
	int PageIndex { get; set; }
	int PageSize { get; set; }
	int TotalCount { get; set; }
	IList<Warning> Warnings { get; }
	void Add(T item);
	void Clear();
	Object Clone();
	bool Contains(T item);
	void CopyTo(T[] array, int arrayIndex);
	void ForEach(Action<T> action);
	IEnumerator<T> GetEnumerator();
	bool HasErrors();
	int IndexOf(T item);
	void Insert(int index, T item);
	bool Remove(T item);
	void RemoveAt(int index);
}

属性

名称

类型

描述

默认值

选项

Count

int

Errors

IList<Error>

IsReadOnly

bool

Item

T

PageIndex

int

PageSize

int

TotalCount

int

Warnings

IList<Warning>

方法

void Add(T item);

参数

名称

类型

描述

必需

默认值

选项

item

T

Item

void Clear();

Object Clone();

返回类型

Object

bool Contains(T item);

参数

名称

类型

描述

必需

默认值

选项

item

T

Item

返回类型

bool

void CopyTo(T[] array, int arrayIndex);

参数

名称

类型

描述

必需

默认值

选项

array

T[]

Array

arrayIndex

int

Array Index

void ForEach(Action<T> action);

参数

名称

类型

描述

必需

默认值

选项

action

Action<T>

Action

IEnumerator<T> GetEnumerator();

返回类型

IEnumerator<T>

bool HasErrors();

返回类型

bool

int IndexOf(T item);

参数

名称

类型

描述

必需

默认值

选项

item

T

Item

返回类型

int

void Insert(int index, T item);

参数

名称

类型

描述

必需

默认值

选项

index

int

Index

item

T

Item

bool Remove(T item);

参数

名称

类型

描述

必需

默认值

选项

item

T

Item

返回类型

bool

void RemoveAt(int index);

参数

名称

类型

描述

必需

默认值

选项

index

int

Index