title: Simple way of finding the index of an item in a generic list
body: <p>I'm trying to get the next item in a list of strings (postal codes). Normally I'd just foreach till I find it and then get the next in the list but I'm trying to be a bit more intuitive and compact than that (more of an exercise than anything).</p>
  
  <p>I can find it easily with a lambda:</p>
  
  <pre><code>List&lt;string&gt; postalCodes = new List&lt;string&gt; { "A1B", "A2B", "A3B" };
  currentPostalCode = "A2B";
  postalCodes.Find((s) =&gt; s == currentPostalCode);
  </code></pre>
  
  <p>Which is cool and all, and I properly get "A2B", but I'd prefer the index than the value.</p>