Akamai.Utils.ExtensionMethods.ToByteArray C# (CSharp) Method

ToByteArray() public static method

Retrieve the byte array for a string in UTF8 encoding
public static ToByteArray ( this data ) : byte[]
data this the data string
return byte[]
        public static byte[] ToByteArray(this string data)
        {
            return Encoding.UTF8.GetBytes(data);
        }