System.Diagnostics.TraceInternal.Indent C# (CSharp) Method

Indent() public static method

public static Indent ( ) : void
return void
        public static void Indent()
        {
            // Use global lock
            lock (critSec)
            {
                InitializeSettings();
                if (t_indentLevel < Int32.MaxValue)
                {
                    t_indentLevel++;
                }
                foreach (TraceListener listener in Listeners)
                {
                    listener.IndentLevel = t_indentLevel;
                }
            }
        }

Usage Example

Beispiel #1
0
 public static void Indent()
 {
     TraceInternal.Indent();
 }