title: C# update object in list
body: <p>I have a repository with a <code>public List&lt;someView&gt; list;</code>
  Is it not possible to get an item with linq like this and just update/replace the whole object so the object in the list is updated globally right away?</p>
  
  <pre><code>...
  var item = list.SingleOrDefault(m =&gt; m.Id== viewModel.Id);
  if (item != null)
  {
      item = viewModel;
  }
  ...
  </code></pre>