title: Can I assign a null value to an anonymous type property?
body: <p>I have the following in WebAPI that is converted to a JSON string and sent to the client:</p>
  
  <pre><code>return Ok(new
      {
          Answer = "xxx",
          Text = question.Text,
          Answers = question.Answers.Select((a, i) =&gt; new
          {
              AnswerId = a.AnswerId,
              AnswerUId = i + 1,
              Text = a.Text
          })
      });
  </code></pre>
  
  <p>Now I realize that I would like to assign the value null to Answer.  However this gives me a message saying </p>
  
  <pre><code>cannot assign &lt;null&gt; to anonymous type property. 
  </code></pre>
  
  <p>Is there a way I can do this without having to define a class just so I can assign the null?</p>