title: permutation in c#
body: <p>Is it possible to generate all permutations of a collection in c#?</p>
  
  <pre><code>char[] inputSet = { 'A','B','C' };
  Permutations&lt;char&gt; permutations = new Permutations&lt;char&gt;(inputSet);
  foreach (IList&lt;char&gt; p in permutations)
  {
     Console.WriteLine(String.Format("{{{0} {1} {2}}}", p[0], p[1], p[2]));
  }
  </code></pre>