IsLowSurrogate Method (Char)
Collapse the table of content
Expand the table of content

Char.IsLowSurrogate Method (Char)

Indicates whether the specified Char object is a low surrogate.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static function IsLowSurrogate(
	c : char
) : boolean


Type: System.Char

A character.

Return Value

Type: System.Boolean
true if the numeric value of the c parameter ranges from U+DC00 through U+DFFF; otherwise, false.

In addition to representing single characters using a 16-bit code unit, UTF-16 encoding allows abstract characters to be represented using two 16-bit code units, which is known as a surrogate pair. The second element in this pair is the low surrogate. Its code unit can range from U+DC00 to U+DFFF. An individual surrogate has no interpretation of its own; it is meaningful only when used as part of a surrogate pair.

The following code example demonstrates the IsHighSurrogate, IsLowSurrogate, and IsSurrogatePair methods.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

© 2015 Microsoft