cant figure out why “Contains” will not work. I am getting an error asking if i am missing a directory or assembly reference.?

Instead of converting the string to char[], you can do this:

 if(!"ABCDF".Contains(userInput))
 {
      Console.WriteLine("Enter valid letter");
 }

Leave a Comment