using a List<Article> that is ordered, I want to get next/previous urls.

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-05-28T19:27:35Z Indexed on 2010/05/28 19:32 UTC
Read the original article Hit count: 124

Filed under:
|
|

So I have a List collection that I fetch via a API call (which I don't have any control over).

The list is ordered.

public class Article 
{
     articleID,
     string Url
}

So I have a Url value, using that I want to figure out the next and previous Url's if any.

What's the most elegant way of doing this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about best-practices