title: Add Values to Tuple
body: <p>I was originally using a IDictonary to store string values in my MVC model - as below:</p>
  
  <pre><code>public IDictionary&lt;string, string&gt; MyValues { get; set; }
  
  MyValues = new Dictionary&lt;string, string&gt;
  {
      {"Name", "Joe Bloggs"}, 
      {"Address", "Main Street"}
  };
  </code></pre>
  
  <p>The above is set in my model constructor and I also set other values when I get the model by doing:</p>
  
  <pre><code>var model = new MyModel();
  
  model.MyValues .Add("foo", "bar");
  </code></pre>
  
  <p>In my view then I have the following:</p>
  
  <pre><code>@{
      var myValues = Model.MyValues.ToList();
  
      for (int i = 0; i &lt; myValues .Count(); ++i)
      {
          @Html.Hidden("Id", myValues[i].Key)
          @Html.Hidden("Value", myValues[i].Value)
      }
  }
  </code></pre>
  
  <p>I need to now change this functionality and instead of an IDictoinary implement this with a Tuple</p>
  
  <p>I have just changed the MyValues in my model so far to be:</p>
  
  <pre><code>    public IEnumerable&lt;Tuple&lt;string, string&gt;&gt; MyValues { get; set; }
  </code></pre>
  
  <p>I am not sure how to implement the same functionality I had in my model constructor, setting other values in the model and then enumerating this in the view.</p>