title: Get index of a key/value pair in a C# dictionary based on the value
body: <p>I would like to know if some property or method exists that gets the index of a specific value.</p>
  
  <p>I found that dictionaries have the <code>Contains()</code> method which returns true if the value passed in exists, so this method almost implements what I need. </p>
  
  <p>I know that I can loop through all the value pairs and check the condition, but I ask because maybe there's an optimized way of doing this.</p>