NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

BitConverter.ToChar

Converts two unsigned bytes into a unicode character value.

[Visual Basic]
Public Shared Function ToChar( _
   ByVal value() As Byte, _
   ByVal startIndex As Integer _
) As Char
[C#]
public static char ToChar(
   byte[] value,
   int startIndex
);
[C++]
public: static __wchar_t ToChar(
   unsigned char* value[],
   int startIndex
);
[JScript]
public static function ToChar(
   value : Byte[],
   startIndex : int
) : Char;

Parameters

value
An array of unsigned bytes.
startIndex
A position within value at which to begin.

Return Value

A character formed from two unsigned bytes beginning at startIndex.

Exceptions

Exception Type Condition
ArgumentException value is null.
ArgumentException startIndex is a value that results in invalid access to the array.

See Also

BitConverter Class | BitConverter Members | System Namespace