class derived from list
<p>I have a C# class derived from a generic list</p>

<pre><code>public class CostCodes : List&lt;CostCode&gt;
{

    public CostCodes() : base()
    {
        Add(new CostCode { Description = "DOM0010 Fall Arr", ID = 1599 });
        Add(new CostCode { Description = "DOM0020 Acoustics", ID = 1600 });
    }
</code></pre>

<p>when I try to use the Find method on this derived class, no find method appears in intellisense.</p>

<pre><code>var codes = new CostCodes();

CostCode costCode = codes.Find(...
</code></pre>

<p>Figured out that the problem was being caused by the classes being in the test silverlight project. Moved them out, but it would be good to know why it made a difference.</p>

<p>-- UPDATE --</p>

<p>Cant answer my own question yet, but for those who are interested, this article shows why</p>

<p><a href="http://forums.silverlight.net/t/67428.aspx/1" rel="nofollow">http://forums.silverlight.net/t/67428.aspx/1</a></p>

<p>Apparently there is no Find method in silverlight projects. You have to use linq and the "first" method instead of find</p>

<pre><code>using System.Linq;

var costCode = codes.First(cc =&gt; cc.ID == id);
</code></pre>
