[Mono-osx] Formatting Hexadecimal Numbers

Andrew Ayre andy at britishideas.com
Wed Sep 14 19:17:47 EDT 2011


Sorry, I worked out my stupid mistake.

Andy

On 9/15/2011 12:06 AM, Andrew Ayre wrote:
> The following:
> 
> int Signature = 123456;
> string Output = String.Format("Signature is 0x{0:X8} ({0})", Signature);
> 
> produces:
> 
> Signature is 0x123456 (123456)
> 
> What am I doing wrong here?
> 
> thanks, Andy
> 

-- 
Andy
PGP Key ID: 0xDC1B5864


More information about the Mono-osx mailing list