title: Loop through Generic List in vb.net
body: <p>In my VB.net application I am populating my customer object and looping through it as shown below.</p>
  
  <p>As there are thousands of customers, I want to do it 500 customers at a time.</p>
  
  <p>Is there anyway I can have one more For loop to process 500 customers at one shot in vB.net</p>
  
  <p>I am not using LinQ as the database is Oracle.</p>
  
  <p>is there anything like</p>
  
  <p>Thanks</p>
  
  <pre><code>Dim customerList as new List(of customer)
  Dim Customer as new Customer
  
  Try
  CustomerList=dataAccess.GetAllCustomers()
  
  if not CustomerList is nothing then
  
     For each Customer in CustomerList
         BuildXML(custmer.Name,Customer.age,Customer.city)
     next
         ProcessXMLWS(strxml)
  end if
  
  Catch ex as exception
     LogError(ex.message)
  End try
  </code></pre>