title: Avoid Visual Studio warning on dynamic object initialization
body: <p>I'm creating a dynamic JObject:</p>
  
  <pre><code>dynamic request = new JObject();
  request.UserId = 3;
  </code></pre>
  
  <p>But, while compiling the IDE gives me the hint:</p>
  
  <blockquote>
    <p>IDE0017 Object initialization can be simplified</p>
  </blockquote>
  
  <p>When it happens, I normally solve it initializing the object properties together with object construction. Like: </p>
  
  <pre><code>var request = new FooObject {UserId = 3};
  </code></pre>
  
  <p>The problem is, as it is a dynamic object I create the properties dynamically, so it gives me an error saying that I can use the same approach, as:</p>
  
  <pre><code>dynamic request = new JObject {UserId = 3};
  </code></pre>
  
  <p>How to keep the dynamic approach and avoid the IDE warning ? </p>