title: How to check a partial similarity of two strings in C#
body: <p>Is there any function in C# that check the % of similarity of two strings?</p>
  
  <p>For example i have:</p>
  
  <pre><code>var string1="Hello how are you doing"; 
  var string2= " hi, how are you";
  </code></pre>
  
  <p>and the </p>
  
  <pre><code>function(string1, string2) 
  </code></pre>
  
  <p>will return similarity ratio because the words "how", "are", "you" are present in the line.</p>
  
  <p>Or even better, return me 60% of similarity because "how", "are", "you" is a 3/5 of string1.</p>
  
  <p>Does any function exist in C# which do that? </p>