title: C# - comparing values in 2 arrays
body: <p>What I'm trying to do is fairly simple. The user inputs a string. The program checks and counts the number of vowels present in that text string.</p>
  
  <pre><code>    char[] vowels = {'a', 'e', 'i', 'o', 'u'};
      int counter = 0;
  
      string s = txtInput.Text.Trim();
      char[] arr = s.ToCharArray();
  
  
      foreach (char i in arr)
      {
          //checks the 2 arrays for matches
          counter++;
      }
  </code></pre>
  
  <p>How can I check the 2 arrays to see if there are any matches?</p>
  
  <p>Thank you.</p>