title: How to convert ; separated string with Key=Value into a KeyValue pair in .net?
body: <p>How can i split the following string into Key-Value Pair / Hash table ...</p>
  
  <pre><code>"Id=1000;Name=xyzabc;DB=1.2.3.4;DBUserName=admin;DBPassword"
  </code></pre>
  
  <p>I know it can be done by using string.Split() (One with ';', and then each result with '=').
  I am looking for an easy and efficient way of doing it. </p>
  
  <p>In short, instead of string manipulation is there an efficient way to convert the above highlighted text to access the value something like this...</p>
  
  <pre><code>someObject["Id"];//It should return 1000 
  someObject["Name"];//It should return xyzabc 
  someObject["DB"];//It should return xyzabc ..............
  </code></pre>
  
  <p>Does framework has any build in class to do it? </p>
  
  <p>eg: The SQLConnectionBuilder will split the DBName, UserName, Password into its property, if we assign a connectionstring to the SQLConnectionBuilder</p>