title: The inline constraint resolver of type 'DefaultInlineConstraintResolver' was unable to resolve the following inline constraint:
body: <p>I wanted to use attribute routing. My code is:</p>
  
  <pre><code>[Route("api/ws/{parm: myClass}")]
  public void Post(myClass parm)
  { ... }
  </code></pre>
  
  <p>This resulted in an exception in <code>WebApiConfig.Register</code> as follows:</p>
  
  <blockquote>
    <p>The inline constraint resolver of type 'DefaultInlineConstraintResolver' was unable to resolve the following inline constraint: ' myClass'.</p>
  </blockquote>
  
  <p>What could be the cause of this error?</p>
  
  <p><code>myClass</code> is a complex object, ie not a simple value type but a class with multiple properties.  Are such parameters allowed?</p>