title: VB.Net Declare an array of classes, and set value
body: <p>I have a little syntax declare problem in VB.Net.</p>
  
  <pre><code>Dim proxy As USImportoerServiceTypeClient = DMRUtils.CreateAndConfigureClient()
  
  Dim request As New USDeclare_I()
  request.DeclareCollection = New US_ITypeDeclare() {}
  For Each KES In request.DeclareCollection
      KES.DeclareCollectionStructure.DeclareCollectionValidDate = DateTime.ParseExact(txtDeclareDate.Text, "dd-MM-yyyy", System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat)
  Next
  </code></pre>
  
  <p>This above code do not work, becase the <strong>"US_ITypeDeclare() {}"</strong> is empty an only contains a new DeclareCollectionStructure</p>
  
  <p>How do I declare a KoeretoejErklaeringStructure to this an set this date value til
  "DeclareCollectionStructure.DeclareCollectionValidDate" ?</p>
  
  <p>Best regards from Denmark</p>