where the hell am I!?

This commit is contained in:
Michael 2017-05-02 16:43:56 -04:00
parent c3c9587d43
commit 398fbffb89

View file

@ -351,7 +351,7 @@ public static T[] GetItemsOnPage<T>(this T[] collection, int page, int pageSize)
{
List<T> obj = new List<T>();
for(int i = pageSize * page; i < pageSize + (pageSize * page) && i < collection.Count(); i++)
for(int i = pageSize * page; i < pageSize + (pageSize * page) + 1 && i < collection.Count(); i++)
{
obj.Add(collection[i]);
}