C# Char IsLowSurrogate() Method

Beginner
5 min read
Updated: Nov 2026
3 examples
Char

Definition

In C#, Char.IsLowSurrogate returns true for low-surrogate code units (roughly U+DC00–U+DFFF).

A low surrogate should follow a high surrogate. Alone it is incomplete.

This is a static member of System.Char. You call it with the type name, such as Char.IsLowSurrogate(...) or char.IsLowSurrogate(...). A char holds one 16-bit UTF-16 code unit.

Syntax

Pass one code unit to test.

C#
bool ok = Char.IsLowSurrogate(c);
CallWhat it does
Char.IsLowSurrogate(c)True if c is a low surrogate.
Char.IsLowSurrogate(s, i)Tests s[i].

Use after confirming a high surrogate at the previous index.

Library declarations
C#
public static bool IsLowSurrogate(char c);
public static bool IsLowSurrogate(string s, int index);

Parameters

ParameterDescription
cCode unit to test.
s, indexOptional string index overload.

Return Value

Return ValueDescription
trueLow surrogate.
falseNot a low surrogate.

C# Examples

Example 1 — Second Unit of Emoji

Identify the low surrogate.

C#
using System;

class Program {
    static void Main() {
        string emoji = "\U0001F600";
        Console.WriteLine(Char.IsLowSurrogate(emoji[1]));
        Console.WriteLine(Char.IsHighSurrogate(emoji[1]));
    }
}

How It Works

  1. Index 1. Second code unit.
  2. Low true. Matches IsLowSurrogate.
  3. Not high. The second unit is not a high surrogate.
  4. Pair anatomy. High then low.

Example 2 — Digit Is Not Low

Show that '5' is not a low surrogate.

C#
using System;

class Program {
    static void Main() {
        Console.WriteLine(Char.IsLowSurrogate('5'));
        Console.WriteLine(Char.IsSurrogate('5'));
    }
}

How It Works

  1. Digit five. Ordinary BMP char.
  2. Not low. IsLowSurrogate false.
  3. Not surrogate. Broader check false too.
  4. Contrast. Surrogates appear mainly with non-BMP text.

Example 3 — High Then Low

Confirm adjacent units form a pair.

C#
using System;

class Program {
    static void Main() {
        string emoji = "\U0001F600";
        bool ok = Char.IsHighSurrogate(emoji, 0) && Char.IsLowSurrogate(emoji, 1);
        Console.WriteLine(ok);
        Console.WriteLine(Char.IsSurrogatePair(emoji, 0));
    }
}

How It Works

  1. Manual pair check. High at 0, low at 1.
  2. Helper agrees. IsSurrogatePair also true.
  3. Prefer the helper. IsSurrogatePair is clearer in real code.
  4. Valid emoji. Both views confirm the structure.

Frequently Asked Questions

U+DC00 through U+DFFF.
Not as a complete character.
IsHighSurrogate, IsSurrogatePair.
No.
Yes.

Next: IsNumber()

Return true when the character is any Unicode numeric character with System.Char.

IsNumber() 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.

13 people found this page helpful