title: List that always holds current variables value. C#
body: <p>So I need a list (or similar data structure) that always holds the current value for a given variable, once it has been added. This is what currently occurs (in simpler/pseudo code):</p>
  
  <pre><code>intValue = 5;
  intList.Add(intValue);
  
  Print intList[0].toString();
  </code></pre>
  
  <p>Prints "5"</p>
  
  <pre><code>intValue++;
  Print intList[0].toString();
  </code></pre>
  
  <p>Still Prints "5" when I want it to print intValue's new value, "6".</p>
  
  <p>Basically the list needs to store a reference to intValue (I think that's the correct terminology) and not it's actual value. Thanks for your time.</p>