What about:
//true if it doesn't contain letters
bool result = hello.Any(x => !char.IsLetter(x));
More Related Contents:
- .NET / C# – Convert char[] to string
- Detecting *all* emojis
- Why is there no Char.Empty like String.Empty?
- What is the correct way to compare char ignoring case?
- Delete last char of string
- Operator ‘==’ cannot be applied to operands of type ‘char’ and ‘string’
- How to get the first five character of a String
- Can I convert a C# string value to an escaped string literal?
- Get string between two strings in a string
- How to shut down the computer from C#
- Efficient way to remove ALL whitespace from String?
- How to get a path to the desktop for current user in C#?
- Comparing two strings, ignoring case in C# [duplicate]
- Can I “multiply” a string (in C#)?
- Java equivalents of C# String.Format() and String.Join()
- Creating a temporary directory in Windows?
- Need to perform Wildcard (*,?, etc) search on a string using Regex
- Wrap C# application in .msi installer
- File.Copy vs. Manual FileStream.Write For Copying File
- How to split a number into individual digits in c#? [duplicate]
- Convert XmlDocument to String
- How do I get the last four characters from a string in C#?
- Extracting Windows File Properties (Custom Properties) C#
- How can I get the current user directory?
- Does C# have a String Tokenizer like Java’s?
- How to get the output of a System.Diagnostics.Process?
- How can I check if a string contains a character in C#?
- Detect if non DPI-aware application has been scaled/virtualized
- How to know when was Windows started or shutdown?
- Parsing through Arabic / RTL text from left to right