Line 17: Console.ReadLine already returns a string so Convert.ToString is not needed.
You could use the string property Lenght to test if a string is empty.
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
IsNullOrWhiteSpace is a static method so you use it by class.method, i.e.
if (String.IsNullOrWhiteSpace(movie_title)) {
Console.WriteLine("You must enter a movie title, noob!");
} else {
// they entered a title, do whatever you want here
}
Momerath
Nearly a Senior Poster
3,384 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558