title: How to merge values of two lists together
body: <p>For example I have:</p>
  
  <pre><code>public static List&lt;int&gt; actorList = new List&lt;int&gt;();
  public static List&lt;string&gt; ipList = new List&lt;string&gt;();
  </code></pre>
  
  <p>They both have various items in.</p>
  
  <p>So I tried joining the values (string and int) together using a foreach loop:</p>
  
  <pre><code>  foreach (string ip in ipList)
      {
          foreach (int actor in actorList)
          {
              string temp = ip + " " + actor;
              finalList.Add(temp);
          }
      }
  
      foreach (string final in finalList)
      {
          Console.WriteLine(finalList);
      }
  </code></pre>
  
  <p>Although looking back at this, this was pretty stupid and obviously will not work, as the first forloop is nested.</p>
  
  <p>My expected values for finalList list:</p>
  
  <pre><code>actorListItem1 ipListItem1
  actorListItem2 ipListItem2
  actorListItem3 ipListItem3
  </code></pre>
  
  <p>and so on..</p>
  
  <p>So the values from the two lists are concatenated with each other - corresponding of their position in the lists order. </p>