コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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);
 }