예제 #1
0
        internal static string FormatMessage(int errorCode, params object[] arguments)
        {
            if (errorCode == 0)
            {
                return(ClientExceptionHelper.BuildErrorTable(string.Empty, arguments));
            }
            string str = errorCode.ToString((IFormatProvider)CultureInfo.InvariantCulture);

            try
            {
                return(string.Format((IFormatProvider)CultureInfo.InvariantCulture, str, arguments));
            }
            catch (FormatException ex)
            {
                return(ClientExceptionHelper.BuildErrorTable(str, arguments));
            }
        }
예제 #2
0
 internal static void Assert(bool condition, string message, params object[] args)
 {
     ClientExceptionHelper.Assert(condition, string.Format((IFormatProvider)CultureInfo.InvariantCulture, message, args));
 }