title: Avoiding same key error in dictionary with a suffix
body: <p>I can't have the same key. But a simple (and effective) solution is put a suffix after key.</p>
  
  <p>But as I'm in a foreach, I was wondering a fast and clean way to add a number suffix to duplicated keys.</p>
  
  <p>e.g.:</p>
  
  <p>My foreach is that:</p>
  
  <pre><code>foreach (Item item in items) {
      dic.Add(item.SomeKey, item.SomeValue);
  }
  </code></pre>
  
  <p>But I don't want duplicated keys, so I need to 'handle' SomeKey to <code>Origin</code> become <code>Result</code></p>
  
  <p>SomeKey Origin: <code>key, clave, clave, chave, chave, chave</code><br>
  SomeKey Result: <code>key, clave, clave1, chave, chave1, chave2</code>  </p>
  
  <hr>
  
  <p>Edit:
  My answer to @KooKiz explain better the question.</p>
  
  <p>I have few duplicated entries. I'm just trying to figure out how to <code>then increment the suffix until you find no item</code>. Sounds like reinvent wheels, so I was wondering if someone know a good way to do that</p>