title: How do you concatenate Lists in C#?
body: <p>If I have:</p>
  
  <pre><code>List&lt;string&gt; myList1;
  List&lt;string&gt; myList2;
  
  myList1 = getMeAList();
  // Checked myList1, it contains 4 strings
  
  myList2 = getMeAnotherList();
  // Checked myList2, it contains 6 strings
  
  myList1.Concat(myList2);
  // Checked mylist1, it contains 4 strings... why?
  </code></pre>
  
  <p>I ran code similar to this in Visual Studio 2008 and set break points after each execution. After <code>myList1 = getMeAList();</code>, <code>myList1</code> contains four strings, and I pressed the plus button to make sure they weren't all nulls.</p>
  
  <p>After  <code>myList2 = getMeAnotherList();</code>, <code>myList2</code> contains six strings, and I checked to make sure they weren't null... After <code>myList1.Concat(myList2);</code> myList1 contained only four strings. Why is that?</p>