public static Uri GetMediaResourceUri(this SyndicationItem item)
{
if (item == null)
{
throw new ArgumentNullException("item");
}
if (!item.IsMediaEntry())
{
throw new ArgumentException("The item is not a media entry");
}
return ((UrlSyndicationContent) item.Content).Url;
}