title: How do I get the index of a newly added item in a list in C#?
body: <p>When I add an item (an instance of a class) to a list, I need to know the index of the new item. Is it possible with any function?</p>
  
  <p>Example code:</p>
  
  <pre><code>MapTiles.Add(new Class1(num, x * 32 + cameraX, y * 32 + cameraY));
  </code></pre>