Try this
Create a class with 2 property
Public class MyClass
{
Public string Name {get; set;}
Public string Status {get; set;}
}
Iterate the books list (with increment of 2 )to store the Value property in Name and Status as below
List<MyClass> lst = new List<MyClass>();
For( int I =O; I< books.Count; I=I+2)
{
String name = books [I].Value;
String Status= (I+1) < books.Count ? Books[I+1].Value : "";
MyClass obj = new MyClass ();
Obj.Name = name;
Obj.Status = Status;
Lst.Add(obj);
}
Return lst;
I haven't compiled this code, take care of Typo, posted through Mobile