For a method I have the following parameter IEnumerable<string> tags
and with to query a list of objects, let's call them Post, that contains a property IEnumerable<string> Tags { get; set; }
.
My question is:
How do I use linq to query for objects that contains all the tags from the tags parameter?
private List<Post> posts = new List<Post>();
public IEnumerable<Post> GetPostsWithTags(IEnumerable<string> tags)
{
return ???;
}