Closed krasninja closed 5 years ago
To create empty PagedList we need to use this code:
PagedList
return PagedListFactory.AsOnePage(Enumerable.Empty<ImageDto>().ToList());
Can we simplify usage with shorthand like this?
PagedListFactory.Empty<ImageDto>();
Also creating PagedList requires to provide type argument explicitly, can we have any shorthand to simplify class creation.
PS Right now lists do not suppor serialization.
Fixed in 2.0.0
To create empty
PagedList
we need to use this code:Can we simplify usage with shorthand like this?
Also creating
PagedList
requires to provide type argument explicitly, can we have any shorthand to simplify class creation.PS Right now lists do not suppor serialization.