title: C# Add Ranks to listelements in a certain way
body: <p>I got a list with teams sorted by their score</p>
  <pre><code>Team G, Score:7
  Team A, Score:5
  Team X, Score:4
  Team Y, Score:4
  Team T, Score:3
  Team K, Score:3
  Team P, Score:2
  Team L, Score:2
  Team E, Score:1
  Team R, Score:1
  Team O, Score:1
  Team Q, Score:1
  </code></pre>
  <p>Now I am ranking these Teams by their score.</p>
  <pre><code>public static void AddRankByScore(List&lt;TeamExtended&gt; teams)
      {
          if (teams == null) return;
          var rank = 1;
  
          foreach (var team in teams)
          {
              team.Rank= $&quot;{rank}&quot;;
              rank++;
          }
      }
  </code></pre>
  <p>The result looks like this</p>
  <pre><code>Team G, Score:7, Rank:1
  Team A, Score:5, Rank:2
  Team X, Score:4, Rank:3
  Team Y, Score:4, Rank:4
  Team T, Score:3, Rank:5
  Team K, Score:3, Rank:6
  Team P, Score:2, Rank:7
  Team L, Score:2, Rank:8
  Team E, Score:1, Rank:9
  Team R, Score:1, Rank:10
  Team O, Score:1, Rank:11
  Team Q, Score:1, Rank:12
  </code></pre>
  <p>But I want the ranks to look like this</p>
  <pre><code>Team G, Score:7, Rank:1
  Team A, Score:5, Rank:2
  Team X, Score:4, Rank:3
  Team Y, Score:4, Rank:3
  Team T, Score:3, Rank:5
  Team K, Score:3, Rank:5
  Team P, Score:2, Rank:7
  Team L, Score:2, Rank:7
  Team E, Score:1, Rank:9
  Team R, Score:1, Rank:9
  Team O, Score:1, Rank:9
  Team Q, Score:1, Rank:9
  </code></pre>
  <p>How do I do that? I have to skip some ranks if teams have the same score.</p>