Exemple #1
0
 private TreeNode(Formatter formatter, string prefix, string entry, int depth)
 {
     _formatter = formatter ?? throw new ArgumentNullException(nameof(formatter));
     _prefix    = prefix ?? throw new ArgumentNullException(nameof(prefix));
     formatter.RegisterEntry(prefix.Length, depth);
     _entry = entry;
     _depth = depth;
 }
Exemple #2
0
 private TreeNode(Formatter formatter, string prefix, string entry, int depth)
 {
     _formatter = formatter;
     formatter.RegisterEntry(prefix.Length, depth);
     _prefix = prefix;
     _entry  = entry;
     _depth  = depth;
 }