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)); } }
internal static void Assert(bool condition, string message, params object[] args) { ClientExceptionHelper.Assert(condition, string.Format((IFormatProvider)CultureInfo.InvariantCulture, message, args)); }