// Debug error string writeline internal static string ELookup(OleDbHResult hr) { string result = hr.ToString(); if (char.IsDigit(result[0])) { result = ""; } return($"{result}(0x{(int)hr:X8})"); }
// Debug error string writeline internal static string ELookup(OleDbHResult hr) { StringBuilder builder = new StringBuilder(); builder.Append(hr.ToString()); if ((0 < builder.Length) && char.IsDigit(builder[0])) { builder.Length = 0; } builder.Append($"(0x{(int)hr:X8})"); return(builder.ToString()); }
// Debug error string writeline internal static string ELookup(OleDbHResult hr) { StringBuilder builder = new StringBuilder(); builder.Append(hr.ToString()); if ((0 < builder.Length) && char.IsDigit(builder[0])) { builder.Length = 0; } builder.Append("(0x"); builder.Append(((int)hr).ToString("X8", CultureInfo.InvariantCulture)); builder.Append(")"); return(builder.ToString()); }
// Debug error string writeline static internal string ELookup(OleDbHResult hr) { StringBuilder builder = new StringBuilder(); builder.Append(hr.ToString()); if ((0 < builder.Length) && Char.IsDigit(builder[0])) { builder.Length = 0; } builder.Append("(0x"); builder.Append(((int)hr).ToString("X8", CultureInfo.InvariantCulture)); builder.Append(")"); return builder.ToString(); }