Creates a byte array from a string using UTF8 encoding.

Namespace: LLCryptoLib.Utils
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public static byte[] Text2Bytes(
	string text
)
Visual Basic
Public Shared Function Text2Bytes ( _
	text As String _
) As Byte()
Visual C++
public:
static array<unsigned char>^ Text2Bytes(
	String^ text
)

Parameters

text
Type: System..::..String
A string to convert to a byte array.

Return Value

A byte array resulting from the conversion of the input string with UTF8 encoding

See Also