Graceful way to handle item not found in a collection in C#
<p>I have the following scenario:</p>

<ol>
<li>I have a foreach loop that loops through a collection, if an item is found (based on criteria as in example below), it will return that item. </li>
</ol>

<p>If not what is the most graceful way to deal with this exception. I have a throw new notimplementedexception but I think there is a more elegant way. </p>

<p>Code is:</p>

<pre><code> foreach (SPContentType type in sPContentTypeCollection)
            {
                if (type.Name == contentTypeName)
                {
                    return type; 
                }
            }

 throw new NotImplementedException(); 
</code></pre>

<p>As you can see, it's not what I would call readable code. How can I make it easier for the next guy to maintain. On a side note, it does what it should from a technical perspective.</p>
