Home General

Dump() to dislpay in hexadecimal format

Hi,
is there an easier way to display a variable with Dump() than Dump(String.Format...)?
Something like var.Dump("X")...?

Thanks,
Michael

Comments

  • I would just go:

    12345.ToString("X").Dump();

    If this is too much trouble, you could write an extension method in 'My Extensions' called ToHex that calls ToString("X").

    (Or you could write a DumpF extension method).
Sign In or Register to comment.