title: How to compare two string arrays and store the matching values in another string array?
body: <pre><code>string[] a = { 2; a; 3; b; 4; c}
  string[] b = { 2; a; 6; c}
  </code></pre>
  
  <p>I want to compare this two arrays and remove the all digit(2,3,4,6)values and store match string values in another array.</p>
  
  <p>I want the result like this:</p>
  
  <pre><code>string[] c = {a; c;}
  </code></pre>
  
  <p>I was tried this but it was adding all the values.</p>
  
  <pre><code>string[] result = a.Union(b).ToArray();
  </code></pre>