Ejemplo n.º 1
0
 public bool hasSameTitle(string showTitle)
 {
     //convert all show objects to lowercase, and if that instance contains the title, return true
     if (Shows.ConvertAll(s => s.showTitle.ToLower()).Contains(showTitle.ToLower()))
     {
         Console.WriteLine("{Title} is a duplicate in the file", showTitle);
         return(true);
     }
     return(false);
 }