In c# I have Error codes defined as
public const uint SOME_ERROR= 0x80000009;
I want to write the 0x80000009 to a text file, right now I am trying
private static uint ErrorCode;
ErrorCode = SomeMethod();
string message = "Error: {0}.";
message = string.Format(message, ErrorCode);
But that writes it out as a int such as "2147483656" how can I get it to write out as the hex to a text file?