title: Checking which object appears most times in a list c#
body: <p>So i Have a temporary <code>ListObject</code> List used just to check the condition </p>
  
  <pre><code>class ListObject
  {
      public string Key { get; set; }
      public int Value { get; set; }
  
      public void Convert(string str)
      {
          Key = str;
      }
  }
  </code></pre>
  
  <p>and I'm writing a method supposed to check which name appears most times in another List of objects. The <em><code>ListObject.Key</code></em> gets the name assigned, while <em><code>ListObject.Value</code></em> stores the number of appearances. I want to check if the name was already stored from the List I'm holding the value in, and if yes, then increase the Value on the ListObject field which stores the name. 
  The thing is that i have no idea how to point the field which should be increased. I would need something like <code>list[*index of the wanted name].Value += 1;</code> How am i supposed to point the index? And should I use KeyValue pair instead of my <em><code>ListObject</code></em> class?</p>