P
PJ
I have a class definition :
public class PagingList<T> : List<T>
{
private int pageSize, pageNumber;
public PagingList()
{
pageSize = (this.Count == 0) ? 1 : this.Count;
pageNumber = 1;
}
My problem is that this.Count is 0, apparently the list items aren't
available in the constructor. Is it possible to get access to the list
items in the constructor?
~PJ
public class PagingList<T> : List<T>
{
private int pageSize, pageNumber;
public PagingList()
{
pageSize = (this.Count == 0) ? 1 : this.Count;
pageNumber = 1;
}
My problem is that this.Count is 0, apparently the list items aren't
available in the constructor. Is it possible to get access to the list
items in the constructor?
~PJ