欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

C#十六進(jìn)制字符串轉(zhuǎn)十進(jìn)制int的方法

 更新時(shí)間:2015年03月30日 16:06:37   作者:樂(lè)樂(lè)010  
這篇文章主要介紹了C#十六進(jìn)制字符串轉(zhuǎn)十進(jìn)制int的方法,涉及C#操作數(shù)制轉(zhuǎn)換的技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下

本文實(shí)例講述了C#十六進(jìn)制字符串轉(zhuǎn)十進(jìn)制int的方法。分享給大家供大家參考。具體實(shí)現(xiàn)方法如下:

復(fù)制代碼 代碼如下:
string str = "3A";
int result = int.Parse("3A", System.Globalization.NumberStyles.AllowHexSpecifier);
//int result = int.Parse("3A", System.Globalization.NumberStyles.HexNumber);
Console.WriteLine(result);//輸出58
Console.ReadLine();

希望本文所述對(duì)大家的C#程序設(shè)計(jì)有所幫助。

相關(guān)文章

最新評(píng)論