17 марта 2008

Example: linq & rss - "Самое Разное"

Насколько красиво стал выглядеть код обработки rss фида:

string[] feedUrls = { "http://site/rss1",

var items =
from url in feedUrls
let feed = SyndicationFeed.Load(XmlReader.Create(url))
from item in feed.Items
where item.PublishDate > DateTime.Now.AddDays(-30)
orderby item.PublishDate descending
select item;

// display the most recent 15 items
foreach (SyndicationItem item in items.Take(15))
Console.WriteLine("{0} : {1}",

Источник: блог K.Scott Allen
Link - Comments - Mon, 17 Mar 2008 07:59:28 GMT - Feed (1 subs)

Sent using SendMeRss.com.
Visit here to unsubscribe.
Recommended Feeds/Actions

Комментариев нет:

Архив блога

What to do?

you have site designed in a dark theme, saying dark background, white font.
By default google toolbar autocomplete cracks html for inputs or selects containg "email" "name" "address" and other buzzwords and changes background to yellow. As a result when visitor fills form, he enters text as white on yellow and can not easy validate his input
What to do?



item http://www.voronenko.com/2008/03/example-linq-rss.html