I want to implement paging on a list of data. The list has some fake items in itself as flag items for doing some specific work on the data. A simplified version of what I have done is as below:
List<Model> list = _myServiceContract.MyServiceMethod(MySearchModel);
pagedData = list.Skip((page - 1) * pageSize).Take(pageSize);
But my problem with this way is that the fake items will be counted in the Skip and Take methods of the Linq.
I want to know if it is possible to ignore those fake items in the Skip method then apply Skip on the list, including fake items by some changes in the Take method for example or something similar.
Edit: The first list is ordered before doing paging and those fake items are in ordered places also. You should know the order of the list is important for me.