class A {}
class B : A {}
class C : A {}
ICollection<A> myCollection;
var myresults = myCollection.Where(item => item.GetType() is C);
Given the hierarchy above the where predicate effectively does nothing.
How can I structure the where predicate to return all items of type C from the collection?
Instead of where you can use
OfType<TResult>