PagedList<T> Class
Namespace: PTS.Collections
Assembly: PTS.Collections.dll
Syntax
public class PagedList<T> : List<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IPagedList<T>, IPagedList, IList, ICollection, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T |
Inheritance
System.Object
System.Collections.Generic.List<T>
PagedList<T>
Implements
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
IPagedList<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Constructors
PagedList(IPagedList)
Initializes a new instance of the PagedList<T> class.
Declaration
public PagedList(IPagedList other)
Parameters
Type | Name | Description |
---|---|---|
IPagedList | other | The other. |
PagedList(IQueryable<T>, Int32, Int32, Int32)
Initializes a new instance of the PagedList<T> class.
Declaration
public PagedList(IQueryable<T> queryable, int totalCount, int pageNumber, int pageSize)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.IQueryable<T> | queryable | The queryable source. |
System.Int32 | totalCount | The total count. |
System.Int32 | pageNumber | The page number. |
System.Int32 | pageSize | Size of the page. |
Properties
PageCount
Gets or sets the pages count.
Declaration
public int PageCount { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int32 | The pages count. |
PageNumber
Gets or sets the page number.
Declaration
public int PageNumber { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int32 | The page number. |
PageSize
Gets or sets the size of the page.
Declaration
public int PageSize { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int32 | The size of the page. |
TotalCount
Gets or sets the total count.
Declaration
public int TotalCount { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int32 | The total count. |
Implements
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Inherited Members
System.Collections.Generic.List<T>.System.Collections.IList.get_Item(System.Int32)
System.Collections.Generic.List<T>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.Generic.List<T>.Add(T)
System.Collections.Generic.List<T>.AddRange(System.Collections.Generic.IEnumerable<T>)
System.Collections.Generic.List<T>.AsReadOnly()
System.Collections.Generic.List<T>.BinarySearch(System.Int32, System.Int32, T, System.Collections.Generic.IComparer<T>)
System.Collections.Generic.List<T>.BinarySearch(T)
System.Collections.Generic.List<T>.BinarySearch(T, System.Collections.Generic.IComparer<T>)
System.Collections.Generic.List<T>.Clear()
System.Collections.Generic.List<T>.Contains(T)
System.Collections.Generic.List<T>.ConvertAll<TOutput>(System.Converter<T, TOutput>)
System.Collections.Generic.List<T>.CopyTo(System.Int32, T[], System.Int32, System.Int32)
System.Collections.Generic.List<T>.CopyTo(T[])
System.Collections.Generic.List<T>.CopyTo(T[], System.Int32)
System.Collections.Generic.List<T>.Exists(System.Predicate<T>)
System.Collections.Generic.List<T>.Find(System.Predicate<T>)
System.Collections.Generic.List<T>.FindAll(System.Predicate<T>)
System.Collections.Generic.List<T>.FindIndex(System.Int32, System.Int32, System.Predicate<T>)
System.Collections.Generic.List<T>.FindIndex(System.Int32, System.Predicate<T>)
System.Collections.Generic.List<T>.FindIndex(System.Predicate<T>)
System.Collections.Generic.List<T>.FindLast(System.Predicate<T>)
System.Collections.Generic.List<T>.FindLastIndex(System.Int32, System.Int32, System.Predicate<T>)
System.Collections.Generic.List<T>.FindLastIndex(System.Int32, System.Predicate<T>)
System.Collections.Generic.List<T>.FindLastIndex(System.Predicate<T>)
System.Collections.Generic.List<T>.ForEach(System.Action<T>)
System.Collections.Generic.List<T>.GetEnumerator()
System.Collections.Generic.List<T>.GetRange(System.Int32, System.Int32)
System.Collections.Generic.List<T>.IndexOf(T)
System.Collections.Generic.List<T>.IndexOf(T, System.Int32)
System.Collections.Generic.List<T>.IndexOf(T, System.Int32, System.Int32)
System.Collections.Generic.List<T>.Insert(System.Int32, T)
System.Collections.Generic.List<T>.InsertRange(System.Int32, System.Collections.Generic.IEnumerable<T>)
System.Collections.Generic.List<T>.LastIndexOf(T)
System.Collections.Generic.List<T>.LastIndexOf(T, System.Int32)
System.Collections.Generic.List<T>.LastIndexOf(T, System.Int32, System.Int32)
System.Collections.Generic.List<T>.Remove(T)
System.Collections.Generic.List<T>.RemoveAll(System.Predicate<T>)
System.Collections.Generic.List<T>.RemoveAt(System.Int32)
System.Collections.Generic.List<T>.RemoveRange(System.Int32, System.Int32)
System.Collections.Generic.List<T>.Reverse()
System.Collections.Generic.List<T>.Reverse(System.Int32, System.Int32)
System.Collections.Generic.List<T>.Sort()
System.Collections.Generic.List<T>.Sort(System.Collections.Generic.IComparer<T>)
System.Collections.Generic.List<T>.Sort(System.Comparison<T>)
System.Collections.Generic.List<T>.Sort(System.Int32, System.Int32, System.Collections.Generic.IComparer<T>)
System.Collections.Generic.List<T>.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
System.Collections.Generic.List<T>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.List<T>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.List<T>.System.Collections.IList.Add(System.Object)
System.Collections.Generic.List<T>.System.Collections.IList.Contains(System.Object)
System.Collections.Generic.List<T>.System.Collections.IList.IndexOf(System.Object)
System.Collections.Generic.List<T>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.Generic.List<T>.System.Collections.IList.Remove(System.Object)
System.Collections.Generic.List<T>.ToArray()
System.Collections.Generic.List<T>.TrimExcess()
System.Collections.Generic.List<T>.TrueForAll(System.Predicate<T>)
System.Collections.Generic.List<T>.Capacity
System.Collections.Generic.List<T>.Count
System.Collections.Generic.List<T>.Item[System.Int32]
System.Collections.Generic.List<T>.System.Collections.Generic.ICollection<T>.IsReadOnly
System.Collections.Generic.List<T>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.List<T>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.List<T>.System.Collections.IList.IsFixedSize
System.Collections.Generic.List<T>.System.Collections.IList.IsReadOnly
System.Collections.Generic.List<T>.System.Collections.IList.Item[System.Int32]
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()