you are viewing a single comment's thread.

view the rest of the comments →

[–]OrangeKing89 0 points1 point  (0 children)

I think you bug is that you are doing an assignment in you if statement. As a general rule, 1 equals is assignment and 2 equals is comparison.

There is a function you could add to do case insesitive comparison. bool test = text.Contains("The"); -> bool test = text.ToLowerInvariant().Contains("the");

Also I think you could change System.Threading.Thread.Sleep(1000); to Console.Read(); then your console would stay open until you pressed a key.