1.十进制转16进制
1 int number=10 2 string result=number.ToString("X2"); 3 >>0A 4 //X2表示大写2位
C#值数值类型转换
原文:http://www.cnblogs.com/imstrive/p/5622796.html