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; }
private TreeNode(Formatter formatter, string prefix, string entry, int depth) { _formatter = formatter; formatter.RegisterEntry(prefix.Length, depth); _prefix = prefix; _entry = entry; _depth = depth; }