What's the most efficient way to combine two List(Of String)?

Jason Towne picture Jason Towne · Mar 16, 2010 · Viewed 33.5k times · Source

Let's say I've got:

Dim los1 as New List(Of String)
los1.Add("Some value")

Dim los2 as New List(Of String)
los2.Add("More values")

What would be the most efficient way to combine the two into a single List(Of String)?

Edit: While I love the solutions everyone has provided, I probably should have also mentioned I'm stuck using the .NET 2.0 framework.

Answer

Javier picture Javier · Mar 16, 2010

I think

los1.AddRange(los2)