Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }