[英]c# convert string to dword hex
Can anyone help me how to convert string value to dword hex for example: 谁能帮助我例如将字符串值转换为dword十六进制:
string i = "1";
uint32 m = ....
m.toString(X8);
so that: m = 00000001 这样:m = 00000001
string i = "1";
UInt32 m;
UInt32.TryParse(i, out m);
string result = m.ToString("X8");
or 要么
string result = Convert.ToUInt32("1").ToString("X8");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.