title: Sorted dynamic list is read only?
body: <p>I have a dynamic list that I try to sort then change the id based on the new sort order:</p>
  
  <pre><code>foreach (Case c in cases)
  {
      bool edit = true;
  
      if (c.IsLocked.HasValue)
          edit = !c.IsLocked.Value;
  
      eventList.Add(new {
          id = row.ToString(),
          realid = "c" + c.CaseID.ToString(),
          title = c.CaseTitle + "-" + c.Customer.CustomerDescription,
          start = ResolveStartDate(StartDate(c.Schedule.DateFrom.Value.AddSeconds(row))),
          end = ResolveEndDate(StartDate(c.Schedule.DateFrom.Value), c.Schedule.Hours.Value),
          description = c.CaseDescription,
          allDay = false,
          resource = c.Schedule.EmployeID.ToString(),
          editable = edit,
          color = ColorConversion.HexConverter(System.Drawing.Color.FromArgb(c.Color.Value))
      });
  
      row++;
  
  }
  
  var sortedList = eventList.OrderBy(p =&gt; p.title);
  
  for (int i = 0; i &lt; sortedList.Count(); ++i)
  {
      sortedList.ElementAt(i).id = i.ToString();
  }
  </code></pre>
  
  <p>But it crashes on  <code>sortedList.ElementAt(i).id = i.ToString();</code> stating that it is read only?</p>
  
  <blockquote>
    <p>Property or indexer <code>&lt;&gt;f__AnonymousType4&lt;string, string,string,string,string,string,bool,string,bool,string&gt;.id</code> cannot be assigned to -- it is read only</p>
  </blockquote>
  
  <p>How can I change the ids?</p>
  
  <p>Thanks</p>