I have a string that I need to convert to the equivalent array of bytes in .NET.
This ought to be easy, but I am having a brain cramp.
Like this:
string test = "text"; byte[] arr = Encoding.UTF8.GetBytes(test);