/// <summary> /// Gets a node and the node's following siblings, i.e. all nodes that share the same /// parent and follow the node in the parent's list of children. /// </summary> /// <typeparam name="T">The type of elements in the tree.</typeparam> /// <param name="walker"> /// The <see cref="ITreeWalker<T>"/> that knows how to find the parent and child /// nodes. /// </param> /// <param name="node"> /// The node whose siblings are to be returned. /// </param> /// <returns> /// An <see cref="System.Collections.Generic.IEnumerable<T>"/> that contains the /// siblings. /// </returns> public static IEnumerable <T> GetFollowingSiblingsAndSelf <T>(this ITreeWalker <T> walker, T node) { return(walker.GetFollowingSiblingsAndSelf <T>(node, EqualityComparer <T> .Default)); }