Class associations and lists
<p>I have a little C# problem. I have two classes ClassA and ClassB defined in this way :</p>

<pre><code>public class ClassA
{
    private ClassB b;
    ClassB B;
    {
        get { return b; }
        set { b = value; }
    }
}

public class ClassB
{
    /* some stuff */
}
</code></pre>

<p>As you can see, ClassA has an instance of ClassB.</p>

<p>The thing is, from a list of ClassA instances, I want to access to a list of the corresponding ClassB instances. I suppose it would look like this:</p>

<pre><code>IList&lt;ClassA&gt; listA = ...;
IList&lt;ClassB&gt; listB = listA.???.B;
</code></pre>

<p>The solution is probably obvious but I can't figure it out by myself.</p>

<p>Any help would be appreciated !</p>
