title: Unable to serialize a datatype "Size" in c#
body: <p>I have a class named MyInfo.It has a property of Size datatype</p>
  
  <pre><code>public class MyInfo{
    private Size position;
    public Size Position
      {
          get { return position; }
          set { position = value; }
      }
   }
  </code></pre>
  
  <p>In my controller i assign it value coming from a service like this</p>
  
  <pre><code>MyInfo myInfo = new MyInfo();
  resp = myservice.GetDataFromService(id);
  dynamic myInfoObj = Newtonsoft.Json.JsonConvert.DeserializeObject&lt;dynamic&gt;(resp);
  var myWidth =(int) myInfoObj.PhysicalSize.Width;
  var myHeight =(int) myInfoObj.PhysicalSize.Height;
  myInfo.Position= new Size(myWidth, myHeight);
  string json = JsonConvert.SerializeObject(myInfo);            
  return json;
  </code></pre>
  
  <p>When I serialize this data from the service and render it as Json on the UI.I get it in below format</p>
  
  <pre><code>"Position":"258, 387"
  </code></pre>
  
  <p>whereas I desire to get in below format. Where am i going wrong?</p>
  
  <pre><code>"Position":{"Width":258,"Height":387}
  </code></pre>