title: C# Function that converts a string to a dictionary
body: <p>I have a function that converts a string to a dictionary using the code below.  I need to add a 3rd delimiter that is essential a row or record delimiter.  Currently "," delimits [attribute,value] and "|" delimits each pair.  I can't figure out how to add the 3rd delimiter to separate the rows and add them to my dictionary.</p>
  
  <pre><code>                 var dict = feed.Split(',')
                     .Select(x =&gt; x.Split('|'))
                     .ToDictionary(x =&gt; x[0], x =&gt; x[1]);
  </code></pre>