C#如何将数据用16进制数来显示

Convert.ToString(要转的数,16)

例:

  Console.WriteLine("16# data: {0}", Convert.ToString(a, 16));

你可能感兴趣的:(C#)