title: Implementation of an anagram function in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/522112/what-is-an-easy-way-to-tell-if-a-list-of-words-are-anagrams-of-each-other">What is an easy way to tell if a list of words are anagrams of each other?</a>  </p>
  </blockquote>
  
  
  
  <p>What is the best way (performance wide) to write a function in C# that takes two strings and returns true when the strings are anagrams of each other and otherwise returns false. Example of anagrams are:</p>
  
  <pre><code>abet beat beta bate
  abides biased
  </code></pre>
  
  <p><a href="http://www.orchy.com/dictionary/anagrams.htm" rel="nofollow noreferrer">anagrams link</a></p>
  
  <p>In implementing this, is it possible that there is space in each string?</p>
  
  <p>Any idea would be very much appreciated!</p>