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)

static member IsLowSurrogate : 
        c:char -> bool

Parameters

c
Type: System.Char

The character to evaluate.

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 point, UTF-16 encoding allows abstract characters to be represented using two 16-bit code points, which is known as a surrogate pair. The second element in this pair is the low surrogate. Its code point 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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft