Question: how to check if a string contains only letters c#?
Answer: if (string.IsNullOrEmpty(inputString)) return false; for (int i = 0; i < inputString.Length; i++) if (!char.IsLetter(inputString[i])) return false; return true;