private void CheckWord(string word) { if (string.IsNullOrWhiteSpace(word)) { throw new ArgumentException("word must not be null or whitespace"); } } }