Quick question. Anybody here ever come across any LINQ method that does OfType(Of T).Cast(Of T) as a single method ?
I just realized that I use these two operations quite a bit when filtering collections of base class objects or interfaces. Seeing as how LINQ accounts for practically every conceivable scenario involving filtering and querying, I'm curious as to weather MS accounted for this particular scenario.
Its not really important that I find such a method as I could easily make one myself. I'm only curious if MS thought about it.
I just realized that I use these two operations quite a bit when filtering collections of base class objects or interfaces. Seeing as how LINQ accounts for practically every conceivable scenario involving filtering and querying, I'm curious as to weather MS accounted for this particular scenario.
Its not really important that I find such a method as I could easily make one myself. I'm only curious if MS thought about it.