Get only specific types from List in C#

This is a post to get the specific type of items from a mixed list of items. I have tried couple of solutions for the problem but it looks like there’s more elegant solution than my solution.

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×