Is each of the following characters a high surrogate?
Imports System Imports Microsoft.VisualBasic Class Sample Public Shared Sub Main() Dim cHigh As Char = ChrW(&HD800) Dim cLow As Char = ChrW(&HDC00) Dim s1 = New [String](New Char() {"a"c, ChrW(&HD800), ChrW(&HDC00), "z"c}) Console.WriteLine("A1) cLow? - {0}", [Char].IsHighSurrogate(cLow)) Console.WriteLine("A2) cHigh? - {0}", [Char].IsHighSurrogate(cHigh)) Console.WriteLine("A3) s1(0)? - {0}", [Char].IsHighSurrogate(s1, 0)) Console.WriteLine("A4) s1(1)? - {0}", [Char].IsHighSurrogate(s1, 1)) End Sub End Class