예제 #1
0
파일: TreeNode.cs 프로젝트: wilvk/HttpRepl
 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;
 }
예제 #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;
 }