Sakura.AspNetCore.Extensions/Sakura.AspNetCore.Mvc.PagedList/Internal/DefaultPagerRenderingListGenerator.cs
/// <summary>
///     Determine if the page is in visible page number list.
/// </summary>
/// <param name="context">
///     The <see cref="PagerItemGenerationContext" /> which contains all informations for the pager and
///     current page.
/// </param>
/// <returns>If the current pager item is in the visible list, returns <c>true</c>; otherwise, returns <c>false</c>.</returns>
Determine if the page is in visible page number list.
Determine if the page is in visible page number list .
private static bool IsPageVisible(PagerItemGenerationContext context)
		{
			var number = context.PagerItem.PageNumber;
			return number <= context.Options.PagerItemsForEndings
			       || number >= context.TotalPage - context.Options.PagerItemsForEndings + 1
			       || number >= context.CurrentPage - context.Options.ExpandPageItemsForCurrentPage
			       || number <= context.CurrentPage + context.Options.ExpandPageItemsForCurrentPage;
		}
private static bool IsPageVisible ( PagerItemGenerationContext context ) { var number = context . PagerItem . PageNumber ; return number <= context . Options . PagerItemsForEndings || number >= context . TotalPage - context . Options . PagerItemsForEndings + 1 || number >= context . CurrentPage - context . Options . ExpandPageItemsForCurrentPage || number <= context . CurrentPage + context . Options . ExpandPageItemsForCurrentPage ; }
Determine if the page is in visible page number list.
Determine if the page is in visible page number list .
If the current pager item is in the visible list, returns truefalse
If the current pager item is in the visible list returns truefalse
context
PagerItemGenerationContext
The  which contains all informations for the pager and
current page.
The which contains all informations for the pager and current page .