title: using Reflection.PropertyInfo
body: <p>I need to loop through an object's properties and for each properties set 2 values.</p>
  
  <p>for example say you have a car class:</p>
  
  <pre><code> Class car
    Property Wheel1 As Wheel
    Property Wheel2 As Wheel
    Property Wheel3 As Wheel
    Property Wheel4 As Wheel
   End Class
  </code></pre>
  
  <p>and each wheel has a set of properties:</p>
  
  <pre><code> Class Wheel
    Property size As Integer
    Property type As Integer
   End Class
  </code></pre>
  
  <p>is there a way to dynamically loop through an object that has wheels and set all of its wheels to size=5 and type=1.</p>
  
  <p>this is where i got stuck trying to get it to work:</p>
  
  <pre><code> Dim ThisCar As New car
    Dim Wheels() As Reflection.PropertyInfo = ThisCar.GetType().GetProperties()
    Dim i As Integer = 0
    Do Until i = Wheels.Count
     Dim TempWheel As Reflection.PropertyInfo = Wheels(i)
  
     Dim WheelProps() As Reflection.PropertyInfo = TempWheel.GetType().GetProperties()
  
     i = i + 1
    Loop
  </code></pre>
  
  <p>the <code>WheelProps</code> are not the properties off the wheel as required...</p>