Mike-
I'm not sure about an actual method for it, but Hex-> Dec, you can use the
Int32.Parse method.
string hexString = "000a01af";
int intOutput = Int32.Parse(hexString, NumberStyles.HexNumber);
NumberStyles is part of the System.Globalization namespace.
For Dec -> Hex, a String.Format should work in most cases (using integer
from above) :
UInt32 unicodeInt = Convert.ToUInt32(intOutput);
string hexOutput = String.Format("{0:x2}", unicodeInt);
Octal and others... I'm not sure, but I'd assume _someone_ has come up with
the libraries or at least has posted the source code somewhere.
HTH.
-dl
--
David R. Longnecker
http://blog.tiredstudent.com
M> Hello,
M> Are there any classes that do the conversions from
M> hex2Dec(), dec2Hex()
M> decimal, hex, octal ..and back to a Base
M> or do i have to implement them myself based
M> on existing conversion utilities in Net
M> Thanks
M> MJ