Summary
Converts a string to a byte array using UTF-8 encoding.
- Assembly
- Cake
.Issues .dll - Namespace
- Cake
.Issues - Containing Type
- ByteArrayExtensions
Syntax
public static byte[] ToByteArray(this string value)
Parameters
Name | Type | Description |
---|---|---|
value | string | String value to convert. |
Return Value
Type | Description |
---|---|
byte[] | Byte array with string value in UTF-8 encoding. |