C# 10进制与16进制相互转换

16进制转10进制:

Convert.ToInt16(0x1a)

10进制转16进制:

Convert.ToString(10, 16)

原文地址:https://www.cnblogs.com/wangbin/p/1265050.html