2021-09-09 C# 任意类型任意多个子列表对象转换为标准树形对象【工具类】
用途
将任意层级的对象,例如下面这个
public class Dept {
public Dept(string name) { this.name = name; }
public string name;
public List<Dept> child;
public List<Team> team;
public List<Person> person;
public override string ToString() {
return
原创
2021-09-09 19:25:22 ·
264 阅读 ·
0 评论