title: Convert Object to a urlencoded String
body: <p>I have a class</p>
  
  <pre><code>class Example
  {
      public int Prop1 { get; set; }
      public int Prop2 { get; set; }
      public String Prop3 { get; set; }
  }
  </code></pre>
  
  <p>How can I <em>automagically</em> convert this object to a urlencoded string and then append it to my hostname?</p>
  
  <p>Urlencoded string:<br>
  <code>prop1=val1&amp;prop2=val2&amp;prop3=val3</code></p>
  
  <p>Final result:<br>
  <code>http://example.com?prop1=val1&amp;prop2=val2&amp;prop3=val3</code></p>