title: Silverlight InitParams where value has a comma
body: <p>In Silverlight 2, using C# on ASP.NET, you can pass a set of Initialization Parameters by assigning the Silverlight object's InitiParams with a string that's a series of comma separated key/value pairs.</p>
  
  <p>I've seen other systems that have a similar mechanism for passing around collections of key/value pairs as a single string.</p>
  
  <p>What is the solution for specifying a value that has a comma in it?</p>
  
  <p>For example this string doesn't have a problem:</p>
  
  <pre><code>string s1 = "key1=value1,key2=value2";
  </code></pre>
  
  <p>but this one does:</p>
  
  <pre><code>string s2 = "key1=value1,key2=two,values";
  </code></pre>
  
  <p>i.e. the "two,values" needs to have the comma escaped in some way...</p>