DataPage<T> constructor

DataPage<T>(
  1. List<T> data,
  2. int total
)

Creates a new instance of data page and assigns its values.

  • data a list of items from the retrieved page.
  • total (optional) .

Implementation

DataPage(List<T> data, int total)
    : data = data,
      total = total;