Off course you can always save you the trouble of doing it yourself and use format specifiers like this:
int value = 32767;
Console.WriteLine("{0,10:G}: {0,10 : X}", value);
Which will output:
32767: 7FFF
Last edited by ddanbe; Dec 25th, 2008 at 8:46 am.
Reputation Points: 2035
Solved Threads: 644
Senior Poster
Offline 3,736 posts
since Oct 2008