i have this class:
class Article
{
public int Id { get; set; }
public string Name { get; set; }
}
List<Article> arts = new List<Article>();
I have a list of objects. These objects have two variables ID, Name. I need to check if in this list there is an article with name = "Cheese". How can I do to make this search returns a Boolean value? Any help would be great! Thanks!