protected virtual DateTime GetPublishDate(XElement item) { var dateString = item.TryGetValue("pubDate"); if (dateString.IsNullOrWhiteSpace()) { throw new UnsupportedFeedException("Rss feed must have a pubDate element with a valid publish date."); } return(XElementExtensions.ParseDate(dateString)); }
protected virtual DateTime GetPublishDate(XElement item) { var dateString = item.TryGetValue("pubDate"); return(XElementExtensions.ParseDate(dateString)); }