I want to compare two lists and get the valid words into a new list.
var words = new List(); var badWords = new List(); //this i
you can use contains method
words.Where(g=>!badWords.Contains(g)).ToList()