Ejemplo n.º 1
0
        private static string GetExceptionString(ExceptionStringID id, string[] args)
        {
            string formatString = GetFormatString(id);

            try
            {
                if (formatString != null)
                {
                    return(String.Format(formatString, (object[])args));
                }
            }
            catch {}

            return("[TEMPORARY EXCEPTION MESSAGE] " + id.ToString() + ": " + String.Join(", ", args));
        }
Ejemplo n.º 2
0
        private static string GetExceptionString(ExceptionStringID id, string[] args)
        {
            string formatString = GetFormatString(id);

#if !DEBUG
            try
            {
#endif
            return(String.Format(formatString, (object[])args));

#if !DEBUG
        }
        catch
        {
            return("[TEMPORARY EXCEPTION MESSAGE] " + id.ToString() + ": " + String.Join(", ", args));
        }
#endif
        }
Ejemplo n.º 3
0
 private static string GetExceptionString(ExceptionStringID id, string[] args)
 {
     // TODO: Share the strings and lookup logic with System.Private.CoreLib.
     return("[TEMPORARY EXCEPTION MESSAGE] " + id.ToString() + ": " + String.Join(", ", args));
 }
Ejemplo n.º 4
0
 private static string GetExceptionString(ExceptionStringID id, string[] args)
 {
     // TODO: Share the strings and lookup logic with System.Private.CoreLib.
     return "[TEMPORARY EXCEPTION MESSAGE] " + id.ToString() + ": " + String.Join(", ", args);
 }
Ejemplo n.º 5
0
 public static string GetFormatString(ExceptionStringID id)
 {
     return(s_stringResourceManager.Value.GetString(id.ToString(), CultureInfo.InvariantCulture));
 }