c# - Get items from PageList -


i using project pagedlist (https://github.com/troygoode/pagedlist) on asp.net mvc project , have following:

pagedlist<testmodel> models = _service.get(2, 20); 

the service return pagedlist need create list items in pagedlist , without paging metadata.

i tried following

ilist<testmodel>)models.getenumerator() 

no success. how can pagedlist converted list?

try

using system.linq;  models.tolist() 

the return type list<testmodel>.


Comments

Popular posts from this blog

php - mysql multiple keyword search in any order -

unity3d - Problems porting a GLSL shadertoy shader to unity -

ios - Summing the heights of the views inside my stackview -