示例#1
0
文件: IHierarchy.cs 项目: tohfe/Olive
 /// <summary>
 /// Gets this node as well as all its children hierarchy.
 /// </summary>
 public static IEnumerable <IHierarchy> WithAllChildren(this IHierarchy parent) =>
 parent.GetAllChildren().Concat(parent).OrderBy(i => i.GetFullPath()).ToArray();