title: Convert a delimited string to a dictionary<string,uint> in C#
body: <p>How do I convert the string to a <code>Dictionary&lt;string, uint&gt;</code>?</p>
  
  <p>There are already answers to this &amp; I tried this but it gives me error.</p>
  
  <pre><code>string abc = "key1=value1,key2=value2";
  </code></pre>
  
  <p>And below thing gives error:</p>
  
  <pre><code>var dict = text.Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries)
             .Select(part =&gt; part.Split('='))
             .ToDictionary(split =&gt; split[0], split =&gt; split[1]);
  </code></pre>
  
  <p>I'm not sure how to store the value as <code>uint</code> in dictionary. Any suggestions?</p>
  
  <p><strong>Update</strong>: and at later point I want to convert this <code>Dictionary&lt;string, uint&gt;</code> back to a comma-separated string (<code>key=value</code>). How do I do that reverse conversion using linq?</p>