C# Char IsAsciiLetterUpper() Method

Beginner
5 min read
Updated: Nov 2026
3 examples
Char

Definition

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');
CallWhat 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

ParameterDescription
cCharacter to test.

Return Value

Return ValueDescription
trueASCII uppercase letter.
falseAnything 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'));
    }
}

How It Works

  1. Upper M. In A–Z.
  2. Lower m. Fails.
  3. Case gate. Uppercase only.
  4. .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));
    }
}

How It Works

  1. ASCII false. É not in A–Z.
  2. IsUpper true. Unicode uppercase.
  3. Alphabet choice. ASCII vs full Unicode.
  4. 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]));
    }
}

How It Works

  1. First A. ASCII uppercase.
  2. Second d. ASCII lowercase.
  3. Name shape. Simple title pattern.
  4. Index access. Read chars directly from the string.

Frequently Asked Questions

No.
No for this ASCII helper.
.NET 7+.
IsAsciiLetter and IsAsciiLetterLower.
Yes.

Next: IsBetween()

Return true when a character lies inclusively between two bounds. .NET 7+ with System.Char.

IsBetween() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

14 people found this page helpful