StringUtils.StringToBytes

Converts a string into bytes for storage in any byte[] types buffer or stream format (like MemoryStream).

public static Byte[] StringToBytes(string text,
	Encoding encoding)

Parameters

text

encoding
The character encoding to use. Defaults to Unicode


See also:

Class StringUtils

© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic