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
MHello,
MAre there any classes that do the conversions from
Mhex2Dec(), dec2Hex()
Mdecimal, hex, octal ..and back to a Base
Mor do i have to implement them myself based
Mon existing conversion utilities in Net
MThanks
MMJ