Answers for "c# code to get byte from string"

C#
0

c# get bytes from string

byte[] bytes = Encoding.ASCII.GetBytes(someString);
Posted by: Guest on March-02-2021
0

c# string to byte

using System.Text;
public static byte[] encode(string stringToEncode)
{
  UTF8Encoding utf8 = new UtF8Encoding();
  byte[] bytename = new byte[1024];
bytename = utf8.GetBytes(stringToEncode);
  return bytename;
}
Posted by: Guest on January-01-1970

C# Answers by Framework

Browse Popular Code Answers by Language