public static GetBytes ( string content ) : byte[] | ||
content | string | |
return | byte[] |
public static byte[] GetBytes(string content)
{
byte[] b = new byte[content.Length];
for (int counter = 0; counter < content.Length; counter++)
b[counter] = Convert.ToByte(content[counter]);
return b;
}