public static SyndicationLink GetLastPageLink(this SyndicationFeed feed, bool throwIfNotPresent) { if (feed == null) { throw new ArgumentNullException("feed"); } SyndicationLink lastPageLink = feed.Links.Where((link) =>(link.RelationshipType == "last")).SingleOrDefault(); return lastPageLink; }