linq where list contains another list

Code Example - linq where list contains another list

                
                        var tagsInBothList = tags
    .Where(tag => anotherList.Contains(tag.TagName))
    .Select(tag => tag.TagName)
    .ToList();