Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Write() [2/2]

virtual void System.Diagnostics.DebugProvider.Write ( string? message)
inlinevirtualinherited

Definition at line 62 of file DebugProvider.cs.

63 {
64 lock (s_lock)
65 {
66 if (message == null)
67 {
68 WriteCore(string.Empty);
69 return;
70 }
71 if (_needIndent)
72 {
73 message = GetIndentString() + message;
74 _needIndent = false;
75 }
76 WriteCore(message);
77 if (message.EndsWith("\r\n", StringComparison.Ordinal))
78 {
79 _needIndent = true;
80 }
81 }
82 }
static readonly object s_lock
static void WriteCore(string message)

References System.Diagnostics.DebugProvider._needIndent, System.Diagnostics.DebugProvider.GetIndentString(), System.Diagnostics.DebugProvider.s_lock, and System.Diagnostics.DebugProvider.WriteCore().

Referenced by System.Diagnostics.DebugProvider.WriteLine().