In C#, Char.IsAsciiLetterUpper returns true only for ASCII A–Z.
Lowercase letters fail. These ASCII helpers are available in .NET 7 and later. On older runtimes, use range checks such as c >= '0' && c <= '9'.
This is a static member of System.Char. You call it with the type name, such as Char.IsAsciiLetterUpper(...) or char.IsAsciiLetterUpper(...). A char holds one 16-bit UTF-16 code unit.
Syntax
Pass a character expected to be A–Z.
C#
bool ok = Char.IsAsciiLetterUpper('M');
Call
What it does
Char.IsAsciiLetterUpper(c)
True for A–Z.
Equivalent to c >= 'A' && c <= 'Z'.
Library declarations
C#
public static bool IsAsciiLetterUpper(char c);
Parameters
Parameter
Description
c
Character to test.
Return Value
Return Value
Description
true
ASCII uppercase letter.
false
Anything else.
C# Examples
Example 1 — M Passes, m Fails
Compare M and m.
C#
using System;
class Program {
static void Main() {
Console.WriteLine(Char.IsAsciiLetterUpper('M'));
Console.WriteLine(Char.IsAsciiLetterUpper('m'));
}
}
Output
True
False
How It Works
Upper M. In A–Z.
Lower m. Fails.
Case gate. Uppercase only.
.NET 7+. Newer helper.
Example 2 — É Differs
Unicode upper vs ASCII upper.
C#
using System;
class Program {
static void Main() {
char c = 'É';
Console.WriteLine(Char.IsAsciiLetterUpper(c));
Console.WriteLine(Char.IsUpper(c));
}
}
Output
False
True
How It Works
ASCII false. É not in A–Z.
IsUpper true. Unicode uppercase.
Alphabet choice. ASCII vs full Unicode.
Same character. Different helper results.
Example 3 — Check First Char
Require an ASCII capital start.
C#
using System;
class Program {
static void Main() {
string name = "Ada";
Console.WriteLine(Char.IsAsciiLetterUpper(name[0]));
Console.WriteLine(Char.IsAsciiLetterLower(name[1]));
}
}
Output
True
True
How It Works
First A. ASCII uppercase.
Second d. ASCII lowercase.
Name shape. Simple title pattern.
Index access. Read chars directly from the string.