Dmitry Bond. wrote:
Quote:
Is it possible to convert a byte to hexadecimal string with leading zero in
C#?
Unfortunately I not found any samples how to do it in .Net. :-(
For decimal numbers I could use String.Format("{0:0#}") or ToString("#0")
but what should I use to obtain hexadecimal representation of a number?
Is it possible at all? |
Sure, just use X2 to get a two digit hex number, for example.
Oliver Sturm
--
Expert programming and consulting services available
See
http://www.sturmnet.org (try /blog as well)