title: How update a list in a foreach
body: <p>I have a foreach of a List and i want to Update the list or (i don´t know wich is better) create a new one with the new values. How to do this ? 
  My code is bigger than this because i am decrypting, but if help me with this simple, will fix the other.</p>
  
  <pre><code>foreach (Envolvido envolvido in ListaDados.ItemsSource)
  {
    for (int i = 0; i &lt; ListaDados.ItemsSource.OfType&lt;object&gt;().Count(); i++)
    {
       var suspid = Convert.FromBase64String(envolvido.SUSPID);
       var ivnome = Convert.FromBase64String(envolvido.IVNOME);
    }
  }
  </code></pre>
  
  <p>So, with the help of all, i got the correct answer !</p>
  
  <pre><code> List&lt;Envolvido&gt; mylist = t.Result;
   for (int index = 0; index &lt; mylist.Count(); index++)
                            {
      var items = mylist.ToList();
      Envolvido envolvido = items[index];
  
      envolvido.SUSPID= Convert.FromBase64String(envolvido.SUSPID);
      envolvido.IVNOME = Convert.FromBase64String(envolvido.IVNOME);
      }
  </code></pre>
  
  <p>THANKS!</p>