System.ServiceModel.Syndication.SyndicationFeedExtensions.GetLastPageLink C# (CSharp) Метод

GetLastPageLink() публичный статический Метод

public static GetLastPageLink ( this feed, bool throwIfNotPresent ) : System.ServiceModel.Syndication.SyndicationLink
feed this
throwIfNotPresent bool
Результат System.ServiceModel.Syndication.SyndicationLink
        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;
        }