示例#1
0
文件: Tag.cs 项目: tabrath/cs-ipld
        public string[] GetTree(string path, int depth)
        {
            if (!string.IsNullOrEmpty(path))
            {
                return path == "tagger" ? new[] { "name", "email", "date" }
            }
            : Array.Empty <string>();

            if (depth == 0)
            {
                return(Array.Empty <string>());
            }

            return(new[] { "object", "type", "tag", "message" }.Concat(Tagger.GetTree("tagger", depth)).ToArray());
        }