title: Can RestSharp send a List<string> in a POST request?
body: <p>I am trying to get <a href="https://github.com/restsharp/RestSharp">RestSharp</a> to work with a restful service that I have. Everything seems to be working fine, except when my object being passed via <code>POST</code> contains a list (in this particular case a list of <code>string</code>).</p>
  
  <p>My object:</p>
  
  <pre><code>public class TestObj
  {
      public string Name{get;set;}
      public List&lt;string&gt; Children{get;set;}
  }
  </code></pre>
  
  <p>When this gets sent to the server  the <code>Children</code> property gets sent as a string with the contents <code>System.Collections.Generic.List`1[System.String]</code>. </p>
  
  <p>This is how I am sending the object:</p>
  
  <pre><code>var client = new RestClient();
  var request = new RestRequest("http://localhost", Method.PUT);
  
  var test = new TestObj {Name = "Fred", Children = new List&lt;string&gt; {"Arthur", "Betty"}};
  request.AddObject(test);
  client.Execute&lt;TestObj&gt;(request);
  </code></pre>
  
  <p>Am I doing something wrong, or is this a bug in RestSharp? (If it makes a difference, I am using JSON, not XML.)</p>