public string ReturnError() { if (MasterList.Contains(MasterWord)) { return("Occurances of your keyword in the sentence:"); } else { return("The sentence does not contain your keyword. Idiot."); } }
//I don't know how you're adding items to instances of B. //This is purely speculative. public void AddItem(A newItem) { new B().AddNewItem(newItem, x => MasterList.Contains(x)); }