Question: how to check if a string contains only special characters in c#?
Answer: Use it inside for loop and check or the string that has special characters. str. ToCharArray(); With that, use a for loop and to check for each character using the isLetterOrDigit() method.