title: How can I simplify C# code that sets multiple properties of an object?
body: <p>I have code that looks like this:</p>
  
  <pre><code>itemView.Question.AnswersJSON = itemView.Answer.ToJSONString();
  itemView.Question.Modified = DateTime.Now;
  itemView.Question.ModifiedBy = User.Identity.Name
  </code></pre>
  
  <p>plus many more lines where I set values for the <code>Question</code> class that is inside the <code>itemView</code>. </p>
  
  <p>I think the answer is "not possible" but just putting it out as a question in case anyone knows a way. </p>
  
  <p>What I would like to do is to find a way to simplify this code without repeating <code>itemView.Question</code> in every line.</p>