/// <summary> /// Returns a PageDataCollection with all the EPiServer pages from a LinkItemCollection. /// </summary> /// <param name="linkItemCollection">Source LinkItemCollection to look for EPiServer pages.</param> /// <returns>PageDataCollection with EPiServer pages from a LinkItemCollection.</returns> public static PageDataCollection ToPageDataCollection(this LinkItemCollection linkItemCollection) { return(linkItemCollection.ToEnumerable <PageData>().ToPageDataCollection()); }