title: C# Class Auto increment ID
body: <p>I am creating a class in C# called "Robot", and each robot requires a unique ID property which  gives themselves an identity.</p>
  
  <p>Is there any way of creating an auto incremental ID for each new class object? So, If i created 5 new robots, their IDs respectively will be 1, 2, 3, 4, 5. If I then destroy robot 2 and create a new robot later, it will have the ID of 2. And if I add a 6th it will have the ID of 6 and so on..</p>
  
  <p>Thanks.</p>