예제 #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();