I need to create a list that hold something like
public List<int,bool> PostionAndChecked
{ get; set; }
and then a list
public List<int> PageNumber
{ get; set; }
So what should happen is the each page number in the PageNumber list should be linked to the PostionAndChecked list
How do i do this?
A
Listis a list of one type, not two. You can use aTuple<int, bool>, or you can use aDictionary<int, bool>.Although, since you just need to hold a bit for each number, you might be satisfied with using a
Set<int>, adding only thetruenumbers.