title: parse a string with name-value pairs
body: <p>How can I parse the following string of name-value pair in C#:</p>
  
  <pre><code>string studentDetail = "StudentId=J1123,FirstName=Jack,LastName=Welch,StudentId=k3342,FirstName=Steve,LastName=Smith"
  </code></pre>
  
  <p>The purpose of parsing this array is to insert values in DB using Linq to SQL:</p>
  
  <pre><code>[HttpPost]
  public ActionResult SaveStudent(string studentDetail)
  {
      DataContext db = new DataContext();         
  
      Student student = new Student();
      {
          student.StudentID = //StudentID
          student.FirstName = //FirstName
          student.LastName = //LastName
      };
  
      db.Student.InsertOnSubmit(student);
      db.SubmitChanges();
  
      return View();
  }
  </code></pre>
  
  <p>What is the best way of approaching this?</p>