title: Autoincrement Id in list
body: <p>Im looking for a way to give my list-objects an Id that autoincrements from 1 to (however many).</p>
  
  <p>This is the class I use</p>
  
  <pre><code>public class Movie
  {
  
      public int Id { get; set; }
      public string Title { get; set; }
      public string Director { get; set; }
  }
  </code></pre>
  
  <p>I will use this as a list like so:</p>
  
  <pre><code> public List&lt;Movie&gt; Movies { get; set; }
  </code></pre>
  
  <p>Now lets say that the list contains 10 movies and I delete movie with id 5. I would like the id´s on all movies to change so that the movie that used to have id 6 now has id 5. Can someone point me in the right direction?</p>