Convert a string into an array of bytes

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

Syntax

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

Parameters

instr
Type: System..::..String
String to convert

Return Value

Array of bytes

See Also