private static char Int32ToHex(int value) { return (value < 10) ? (char)(value + '0') : (char)(value - 10 + 'A'); }