You can do this
widgets2.Where(y=>widget1.Any(z=>z.TypeID==y.TypeID));
More Related Contents:
- Count property vs Count() method?
- How to Quickly Remove Items From a List
- How to split Fromdate and Todate based on weekdays(Sat,Sun) using linq c#
- Convert List to List
- IEnumerable vs List – What to Use? How do they work?
- Flatten List in LINQ
- Using LINQ to remove elements from a List
- Check whether an array is a subset of another
- Sort a list from another list IDs
- How to create List of open generic type of class?
- Quickest way to compare two generic lists for differences
- Combination of List
- Select distinct using linq [duplicate]
- Inheriting from List
- How to easily initialize a list of Tuples?
- Differences between IQueryable, List, IEnumerator?
- How to get the closest number from a List with LINQ?
- Find the most occurring number in a List
- how to check if object already exists in a list
- Conversion from List to array T[]
- LINQ to find series of consecutive numbers
- Check for any element that exists in two collections
- C#: How to convert a list of objects to a list of a single property of that object?
- Get a list of distinct values in List
- Using Linq Except not Working as I Thought
- C# List – Removing items while looping / iterating [duplicate]
- List.Except is not working
- Return max repeated item in list
- Sorting a List
- readonly keyword does not make a List ReadOnly?