Table of Contents

Class PageableExtensions

Namespace
Dynamicweb.CoreUI.Data
Assembly
Dynamicweb.CoreUI.dll
public static class PageableExtensions
Inheritance
PageableExtensions
Inherited Members

Methods

GetPagingIndexOrDefault(IPageable, int?)

public static int GetPagingIndexOrDefault(this IPageable pageable, int? defaultValue = null)

Parameters

pageable IPageable
defaultValue int?

Returns

int

GetPagingSizeOrDefault(IPageable, int?)

public static int GetPagingSizeOrDefault(this IPageable pageable, int? defaultValue = null)

Parameters

pageable IPageable
defaultValue int?

Returns

int

TakeByPageable<T>(IEnumerable<T>, IPageable, int?, int?)

public static IEnumerable<T> TakeByPageable<T>(this IEnumerable<T> list, IPageable pageable, int? defaultPagingIndex = null, int? defaultPagingSize = null)

Parameters

list IEnumerable<T>
pageable IPageable
defaultPagingIndex int?
defaultPagingSize int?

Returns

IEnumerable<T>

Type Parameters

T
To top