title: c# if String Contains 2 "hallo"
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/541954/how-would-you-count-occurences-of-a-string-within-a-string-c">How would you count occurences of a string within a string (C#)?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to check if a String contains 2 things..</p>
  
  <pre><code>String hello = "hellohelloaklsdhas";
  
  if hello.Contains(*hello 2 Times*); -&gt; True
  </code></pre>
  
  <p>How can I solve this?</p>