title: NancyFx binding a model to a dynamic type?
body: <p>In Nancy, is there a way to bind the content of a POST request to a dynamic type?</p>
  
  <p>For example:.</p>
  
  <pre><code>// sample POST data: { "Name": "TestName", "Value": "TestValue" }
  
  // model class
  public class MyClass {
      public string Name { get; set; }
      public string Value { get; set; }
  }
  
  // NancyFx POST url
  Post["/apiurl"] = p =&gt; {
  
      // this binding works just fine
      var stronglyTypedModel = this.Bind&lt;MyClass&gt;();
  
      // the following bindings do not work
      // there are no 'Name' or 'Value' properties on the resulting object
      dynamic dynamicModel1 = this.Bind();
      var dynamicModel2 = this.Bind&lt;dynamic&gt;();
      ExpandoObject dynamicModel3 = this.Bind();
      var dynamicModel4 = this.Bind&lt;ExpandoObject&gt;();
  
  }
  </code></pre>