title: Copy VB.NET list object to another list object
body: <p>I am having a problem when setting VB.NET list object to another. In the example below 
  I create an instance on <code>ReadLocations</code> and than create an object of <code>ReadLocation</code> where then I loop through <code>ReadLocations</code> and set <code>ReadLocation1</code> equal to <code>rl</code>. </p>
  
  <p>What happens is that if I then go and change <code>ReadLocation1</code> to something else (assdfhsd) it will also change the <code>ReadLocations</code> index. I am really confused why it would be doing that unless it is "=" sign means referencing instead of actually setting the value. Please help as I am a C# developer but the program I am modifying is in VB.NET.          </p>
  
  <pre><code>Dim ReadLocations As New List(Of Model.ReadLocation)
  Dim rl1 As New Model.ReadLocation
  rl1.LL = "a"
  Dim rl2 As New Model.ReadLocation
  rl2.LL = "b"
  ReadLocations.Add(rl1)
  ReadLocations.Add(rl2)
  
  Dim ReadLocation11 As New Model.ReadLocation
  
  For Each rl As Model.ReadLocation In ReadLocations
      ReadLocation11 = rl
  Next
  </code></pre>