C#中如何把字符串转换成十六进制的数字?例:"af"->0xaf如提!!! 在线等待~~[解决办法]int i = int.Parse( "af ", NumberStyles.AllowHexSpecifier); Text = i.ToString( "X ");