Skip to content

Commit

Permalink
Sync with template
Browse files Browse the repository at this point in the history
  • Loading branch information
bastare authored Jun 23, 2024
1 parent 9e8d602 commit f91d8cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ IEnumerator IEnumerable.GetEnumerator ()
=> GetEnumerator ();

private PagedList ( IEnumerable<T> items )
=> _immutablePagedList = ImmutableList.CreateRange ( items );
=> _immutablePagedList = [ ..items ];

public static PagedList<T> Create ( IEnumerable<T> items , int count , int offset , int limit )
{
Expand All @@ -47,4 +47,4 @@ static void ParametersAreValid ( int limit )
static int CalculateTotalPages ( int count , int limit )
=> ( int ) Math.Ceiling ( count / ( double ) limit );
}
}
}

0 comments on commit f91d8cc

Please sign in to comment.