title: Convert generic type definition strings from C# style to CLR style
body: <p>I want to convert a C# style generic type <strong>string</strong>, like:</p>
  
  <pre><code>"System.Dictionary&lt;System.String, System.String&gt;"
  </code></pre>
  
  <p>To its CLR equivalent:</p>
  
  <pre><code>"System.Dictionary`1[System.String, System.String]"
  </code></pre>
  
  <p>and back. Is there an easy way to do this, or do I have to resort to string manipulation?</p>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>I only have the <em>string representation</em> in C#/VB/etc style form. I don't have a Type object or something similar at hand. An alternate question would have been: how to get a Type object from a string representation like <code>"System.Dictionary&lt;System.String, System.String&gt;"</code> (after that I can get the full name of the type object).</p>
  
  <p><strong>EDIT#2:</strong> </p>
  
  <p>Justification: I'm creating objects dynamically using <code>CodeDom</code>. The input from which I'm generating the <code>CodeDom</code> might contain types in <code>C#</code> (or any other proprietary like VB.NET) format, but I have to use them inside a <code>CodeTypeReference</code>, which only accepts the CLR style format.</p>