type-definition

Convert generic type definition strings from C# style to CLR style

I want to convert a C# style generic type string, like "System.Dictionary<System.String, System.String>" to it's CLR equivalent: "System.Dictionary`1[System.String, System.String]" and back. Is there an easy way to do this, or do I have to resort to string manipulation? EDIT: I only have the string representation in C#/VB/etc styl...