SerialPort.StringToUnicodeByteArray Method
Converts string to UTF16 byte array.
[Visual Basic]
Public Shared Function StringToUnicodeByteArray( _
ByVal
String As
String _
) As
Byte()
[C#]
public static
byte[] StringToUnicodeByteArray(
String text);
Parameters
-
String
- String value to be converted,
Return Value
Byte array representation of the string.
See Also
SerialPort Class | ZylSerialPort Namespace