Searching users

Dec 4, 2014 at 6:11 PM
Hi, I'm using this code to search users.

var user =
            (from usr in twitterCtx.User
             where usr.Type == UserType.Search &&
                   usr.Query == "Joe Mayo"
             select usr)
             .FirstOrDefault();

        Console.WriteLine("User Name: " + user.Name);
It goes nice. But what is the function to get the next user? How to iterate? Using the same FirstOrDefault function it returns the same (first) user. Also: why the ScreenName is returned in null? How to get the ScreenName from the user?

Regards.
Coordinator
Dec 5, 2014 at 3:44 AM
Hi,

I wrote a blog post on Working with Timelines with LINQ to Twitter. I discusses an older version of LINQ to Twitter, but the concepts of using SinceID and MaxID are the same.

@JoeMayo
Marked as answer by JoeMayo on 12/16/2014 at 5:12 PM