예제 #1
0
        // 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})");
        }
예제 #2
0
        // 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());
        }
예제 #3
0
        // 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());
        }
예제 #4
0
 // 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();
 }