You can either enumerate a resultset or use a for loop.


Enumerating with foreach:


foreach( var customer in customers)

{

   Console.WriteLine("Customer name :" + customer.Name);

}



A for loop:


for (int i = 0; i < customers.RecordCount; i++)

{

   var customer = customers[i];

   Console.WriteLine("Customer name :" + customer.Name);

}