title: Fastest way to copy List(Of T) Class in vb.net?
body: <p>VB.NET 2012
  I create a partial list of foo that will remain static after its built, then a second list of Foo that will always have everything from the partial list.  My question is...  What is a fast or fastest way to copy one list to the other? Is there a faster way, without looping? <BR><BR>
  See method <code>Combine</code> in <code>Class1</code></p>
  
  <pre><code>Option Explicit On
  Option Strict On
  Public Class Form1
      Private _initFoo As New Class1()
      Private _postFoo As New Class1()
  
      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
          _initFoo.Init()
          _postFoo.Combine(_initFoo, _postFoo) ' **
      End Sub
  End Class
  
  
  Option Explicit On
  Option Strict On
  Public Class Class1
      Private FooLst As New List(Of Foo)
  
      Public Class Foo
          Public Property Item1 As String
          Public Property Item2 As String
      End Class
  
      Public Sub Init()
          FooLst.Add(New Class1.Foo With {.Item1 = "1", .Item2 = "A"})
          FooLst.Add(New Class1.Foo With {.Item1 = "2", .Item2 = "B"})
      End Sub
  
      Public Sub Combine(readFrom As Class1, writeTo As Class1) ' **
          ' Is there a faster or way to copy one list to the other?
          ' possibly without looping though each item in the readFrom list?
          For Each f As Foo In readFrom.FooLst
              writeTo.FooLst.Add(New Foo With {.Item1 = f.Item1, .Item2 = f.Item2})
          Next
      End Sub
  End Class
  </code></pre>