Catel.Logging.Log.Unindent C# (CSharp) Method

Unindent() public method

Decreases the IndentLevel by 1.
public Unindent ( ) : void
return void
        public void Unindent()
        {
            if (IndentLevel > 0)
            {
                IndentLevel--;
            }
        }
        #endregion

Usage Example

示例#1
0
文件: LogFacts.cs 项目: pars87/Catel
            public void DecreasesIndentLevel()
            {
                LogManager.RegisterDebugListener();
                var log = new Log(typeof(int)) { IndentLevel = 2 };

                Assert.AreEqual(2, log.IndentLevel);

                log.Unindent();

                Assert.AreEqual(1, log.IndentLevel);
            }
All Usage Examples Of Catel.Logging.Log::Unindent