title: Replace LinkedList element value through LinkedList.Enumerator
body: <p>I realize there are no way for me to replace value through <code>LinkedList.Enumerator</code>. </p>
  
  <p>For instance, I try to port the below Java code to C#:</p>
  
  <p><strong>Java code:</strong></p>
  
  <pre><code>ListIterator&lt;Double&gt; itr1 = linkedList1.listIterator();
  ListIterator&lt;Double&gt; itr2 = linkedList2.listIterator();
  while(itr1.hasNext() &amp;&amp; itr2.hasNext()){
      Double d = itr1.next() + itr2.next();
      itr1.set(d);
  }
  </code></pre>
  
  <p><strong>C# code:</strong></p>
  
  <pre><code>LinkedList&lt;Double&gt;.Enumerator itr1 = linkedList1.GetEnumerator();            
  LinkedList&lt;Double&gt;.Enumerator itr2 = linkedList2.GetEnumerator();
  
   while(itr1.MoveNext() &amp;&amp; itr2.MoveNext()){                
      Double d = itr1.Current + itr2.Current;
      // Opps. Compilation error!
      itr1.Current = d;
  }
  </code></pre>
  
  <p>Any other techniques I can use?</p>