how does the below code work??? explain [closed]
return Math.Min(FirstOfPag开发者_如何学Pythone + PageSize - 1, TotalCount);
explain the code please
Returns either the last record number on the page, or the total number of records, whichever is smaller. Probably to keep from returning more records than is available on the last page.
精彩评论