ComponentAce.Compression.Libs.zlib.SupportClass.ToByteArray C# (CSharp) Method

ToByteArray() public static method

Converts a string to an array of bytes
public static ToByteArray ( System sourceString ) : byte[]
sourceString System The string to be converted
return byte[]
        public static byte[] ToByteArray(System.String sourceString)
        {
            return System.Text.UTF8Encoding.UTF8.GetBytes(sourceString);
        }