Returns a Unicode character converted from two bytes at a specified position in a byte array.
static member ToChar :
value: byte *
startIndex: int -> char
System .Char A character formed by two bytes beginning at startIndex.
method converts the bytes from index ToChar startIndex to startIndex + 1 to a value. The order of bytes in the array must reflect the endianness of the computer system's architecture; for more information, see the Remarks section of the Char class topic. BitConverter
The following code example converts elements of
arrays to Byte values (Unicode characters) with the Char method. ToChar
No code example is currently available or this language may not be supported.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Supported in: 3.0, 2.0, 1.0
Portable Class Library
Supported in: Portable Class Library
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8