title: How do I serialize an object into query-string format?
body: <p>How do I serialize an object into query-string format? I can't seem to find an answer on google. Thanks.</p>
  
  <p>Here is the object I will serialize as an example.</p>
  
  <pre><code>public class EditListItemActionModel
  {
      public int? Id { get; set; }
      public int State { get; set; }
      public string Prefix { get; set; }
      public string Index { get; set; }
      public int? ParentID { get; set; }
  }
  </code></pre>