ASP.NET Add items to a list
<p>I am trying to add items to a list:</p>

<pre><code>List&lt;string&gt; newList = new List&lt;string&gt;();
foreach (var x in dbTimeSlots.Data)
{
    newList.Add(x.id.ToString());
    newList.Add(x.timeSlot + " - " + x.dateSlot);
}
</code></pre>

<p>However my list returns 80 items when I only have 40, this is happening because the id will be one item and the the time and date will be another, I need them as one row, but each row should have an id object, and date and time object. I hope this makes sense, please help!!!!</p>