/// <summary> /// Increase the indent /// </summary> public void PushIndent(string indent) { if (indent == null) { throw new ArgumentNullException(nameof(indent)); } CurrentIndent = CurrentIndent + indent; IndentLengths.Add(indent.Length); }
/// <summary> /// Increase the indent /// </summary> public void PushIndent(string indent = "\t") { if ((indent == null)) { throw new ArgumentNullException("indent"); } _currentIndentField = (_currentIndentField + indent); IndentLengths.Add(indent.Length); }
/// <summary> /// Increase the indent /// </summary> public T PushIndent(string indent) { if (indent == null) { throw new ArgumentNullException("indent"); } _currentIndent = _currentIndent + indent; IndentLengths.Add(indent.Length); return((T)this); }