Getting all the combinations in an array
<p>Say I have the following array:</p>

<pre><code>string[] = new string[] { "A", "B", "C" };
</code></pre>

<p>How can I produce all the possible combinations that contain only two characters and no two the same (e.g. <code>AB</code> would be the same as <code>BA</code>).  For example, using the above array it would produce:</p>

<pre><code>AB
AC
BC
</code></pre>

<p>Please note that this example has been simplified. The array and the length of the string required will be greater.</p>

<p>I'd really appreciate if someone could help.</p>
