I\'ve used .Contains() to find if a sentence contains a specific word however I found something weird:
I wanted to find if the word "hi" was present in a se
You could write your own extension method for string like:
static class StringExtension { public static bool ContainsWord(this string s, string word) { string[] ar = s.Split(' '); foreach (string str in ar) { if (str.ToLower() == word.ToLower()) return true; } return false; } }