Debian Codegraph @

mcs/class/SMDiagnostics/ReferenceSources/TraceSR.cs

raw
1 using System.Globalization;
2
3 static partial class TraceSR
4 {
5 public const string ThrowingException = "throwing exception.";
6 public const string StringNullOrEmpty = "Argument string is null or empty.";
7 public const string GenericCallbackException = "Callback exception has occured.";
8 public const string TraceHandledException = "Trace handled exception.";
9 public const string TraceCodeTraceTruncatedQuotaExceeded = "TraceTruncatedQuotaExceeded";
10 public const string TraceCodeAppDomainUnload = "AppDomainUnload";
11 public const string UnhandledException = "Unhandled exception.";
12 public const string TraceCodeEventLog = "EventLog";
13 public const string WriteCharsInvalidContent = "invalid content.";
14
15 internal static string GetString(string name, params object[] args)
16 {
17 return GetString (CultureInfo.InvariantCulture, name, args);
18 }
19
20 internal static string GetString(CultureInfo culture, string name, params object[] args)
21 {
22 return string.Format (culture, name, args);
23 }
24
25 internal static string GetString(string name)
26 {
27 return name;
28 }
29
30 internal static string GetString(CultureInfo culture, string name)
31 {
32 return name;
33 }
34 }
35