title: Changing the properties of an object in a foreach loop
body: <p>my class</p>
  
  <pre><code>class person
  {
      public string name;
      public string age;
      public string height;
      public string weight;
  }
  </code></pre>
  
  <p>This is what I want to do...</p>
  
  <pre><code>person john = new person();
  int i=0;
  
  List&lt;string&gt; myList = new List&lt;string&gt;() { "John", "22", "174cms" ,"60kgs"};  
  foreach(property in john)
  {
      property = myList[i].toString();
      i++;
  } 
  </code></pre>
  
  <p>How do I do this? Or can I actually do this?</p>