C# convert DOMAIN\USER to USER@DOMAIN
<p>I currently have the following code:</p>

<pre><code>string user = @"DOMAIN\USER";
string[] parts = user.Split(new string[] { "\\" }, StringSplitOptions.None);
string user = parts[1] + "@" + parts[0];
</code></pre>

<p>Input string <code>user</code> can be in one of two formats:</p>

<pre><code>DOMAIN\USER
DOMAIN\\USER (with a double slash)
</code></pre>

<p>Whats the most elegant way in C# to convert either one of these strings to:</p>

<pre><code>USER@DOMAIN
</code></pre>
