You can do this also with LINQ, with some ugly skips and takes :)
class Program
{
static void Main(string[] args)
{
List<Article> list = new List<Article>() {
new Article() { articleID = 1, Url = "http://localhost/1" },
new Article() { articleID = 2, Url = "http://127.0.0.1/2" },
new Article() { articleID = 3, Url = "http://localhost/3" },
new Article() { articleID = 4, Url = "http://127.0.0.1/4" }
};
var coll = (from e in list select e).Skip((from e in list where e.Url.Equals("http://localhost/3") select list.IndexOf(e)).First() - 1).Take(3);
Console.WriteLine(coll.First().Url);
Console.WriteLine(coll.Last().Url);
Console.ReadKey();
}
}
public class Article
{
public int articleID;
public string Url;
}