Query a for a specific object type in a collection
If you have two objects, ObjectA and ObjectB both inheriting from AbstractObject and a collection of AbstractObject. What would a linq statement look like where I select all objects in the collection of specific type. ex. something like:

    var allBs = from b in collection where type == ObjectB select b;
Query a for a specific object type in a collection
===

If you have two objects, ObjectA and ObjectB both inheriting from AbstractObject and a collection of AbstractObject. What would a linq statement look like where I select all objects in the collection of specific type. ex. something like:

    var allBs = from b in collection where type == ObjectB select b;