HierarchyExtensions
public static HierarchyCollection<T> AsHierarchy<T, TProperty>(this IEnumerable<T> allItems, Func<T, TProperty> idProperty, Func<T, TProperty> parentIdProperty)
public static HierarchyNode<T> AsHierarchy<T, TProperty>(this IEnumerable<T> allItems, T parent) where T : IHierarchical<TProperty>
public static HierarchyNode<T> AsHierarchy<T, TProperty>(this IEnumerable<T> allItems, T parent, Func<T, TProperty> idProperty, Func<T, TProperty> parentIdProperty)
public static HierarchyCollection<T> AsHierarchy<T>(this IEnumerable<T> allItems) where T : INestedSet
public static IEnumerable<T> ToNestedList<T, TProperty>(this IEnumerable<T> allItems, Func<T, TProperty> idProperty, Func<T, TProperty> parentIdProperty, Func<T, TProperty> childProperty) where T : IEnumerable<TProperty>