public void InsertNegativeWordIntoDatastore(string word) { if (string.IsNullOrWhiteSpace(word)) { throw new ArgumentException("Negative word cannot be empty"); } NegativeWordsList.Add(word); }
public string[] RetrieveNegativeWordsFromDatastore() { return(NegativeWordsList.ToArray()); }