title: How to Instantiate Class Object from CSV Values?
body: <p>Hi I am trying to create a general CSV parser in Windows 8 App using C#. I want to create a parser in which when I pass the Type T and the string CSV and Object I should get the object populated something like this:</p>
  
  <pre><code>T obj = ParserCSV&lt;T&gt;(CSVString);
  </code></pre>
  
  <p>Currently I am able to get a sample that's there on MSDN link for that <a href="http://code.msdn.microsoft.com/CSV-Parser-for-WinRT-42e0f4d0" rel="nofollow">http://code.msdn.microsoft.com/CSV-Parser-for-WinRT-42e0f4d0</a></p>
  
  <p>In this we parse the csv string and get the collection of Key Value pair. But then to convert to object we need to find the specific key and map that to the object.</p>
  
  <p>How can I achieve this? </p>