/// <summary> /// Returns all siblings of PageData type of provided page. /// </summary> /// <param name="currentPage">Page for which to find siblings.</param> /// <param name="excludeSelf">Mark if exclude itself from sibling sequence.</param> /// <returns>Sequence of siblings of provided page.</returns> public static IEnumerable <PageData> GetSiblings(this PageData currentPage, bool excludeSelf = true) { return(currentPage.GetSiblings <PageData>(excludeSelf)); }