📜  c# string to hex - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:41.246000             🧑  作者: Mango

代码示例3
byte[] ba = Encoding.Default.GetBytes("sample");
var hexString = BitConverter.ToString(ba);
hexString = hexString.Replace("-", "");