Iterating a list of objects with foreach
<p>I came across this statement:</p>

<blockquote>
  <p><em>"When using foreach on a list of objects, the iterated object instance <strong>is not</strong> editable, but the object properties <strong>are</strong> editable"</em></p>
</blockquote>

<p>Could someone demonstrate the above with a simple example, please?</p>

<p>Let me re-phrase (as I found the statement in two versions), maybe this statement is more clear:</p>

<blockquote>
  <p><em>"When using foreach on a list of elements, the <strong>iteration variable</strong> that provides the element is <strong>readonly</strong>, but <strong>the element properties are editable</strong>"</em></p>
</blockquote>