title: How to map two different lists to one list?
body: <p>I have two lists of Generic types <code>A</code> and <code>B</code>:</p>
  
  <pre><code>public class A {
      int type;
      string params;
      bool isActive;
  }
  
  public class B {
      int type;
  }
  </code></pre>
  
  <p>How could I map them into one list of type <code>A</code> where <code>B.type == A.type</code> (not <code>A.type == B.type</code>!!) using linq? </p>
  
  <p>Instances of class <code>B</code> contain <code>int</code> values that can be deleted or added whereas instances of class <code>A</code> contain values from my db. </p>
  
  <p>So for example: </p>
  
  <pre><code>A[0] = {1, "11", true}, A[1] = {2, "22", true}, A[2] = {3, "33", false}
  </code></pre>
  
  <p>and </p>
  
  <pre><code>B = {2, 3}
  </code></pre>
  
  <p>The desired result consists of <code>A[1]</code> and <code>A[2]</code>.</p>