title: How can I get the index of an item in a list in a single step?
body: <p>How can I find the index of an item in a list without looping through it?</p>
  <p>Currently this doesn't look very nice - searching through the list for the same item twice, just to get the index:</p>
  <pre><code>var oProp = something;
  
  int theThingIActuallyAmInterestedIn = myList.IndexOf(myList.Single(i =&gt; i.Prop == oProp));
  </code></pre>