Exemplo n.º 1
0
 public static ReadOnlyCollection <T> Family <T>(this Hierarchy <T> node)
     where T : class, IHierarchy <T>
 {
     return(((IImmutableHierarchy)node).Family().AssertCast <T>().ToReadOnly());
 }
Exemplo n.º 2
0
 public static ReadOnlyCollection <T> ChildrenRecursive <T>(this Hierarchy <T> node)
     where T : class, IHierarchy <T>
 {
     return(((IImmutableHierarchy)node).ChildrenRecursive().AssertCast <T>().ToReadOnly());
 }