C-DEngine 5.105

TheCommonUtils..::..CStringToByteArray Method

Convert a string to a byte array.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static byte[] CStringToByteArray(
	string strIn
)
Public Shared Function CStringToByteArray ( _
	strIn As String _
) As Byte()
public:
static array<unsigned char^>^ CStringToByteArray(
	String^ strIn
)

Parameters

strIn
Type: String
String to convert.

Return Value

A byte array with the results of the conversion, or null on error.

Remarks


A safe function to convert a string into a byte array. Safe means that no unhandled exceptions are generated.