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)); }
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 }
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)); }
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); }
public static string GetFormatString(ExceptionStringID id) { return(s_stringResourceManager.Value.GetString(id.ToString(), CultureInfo.InvariantCulture)); }