linqtotwitter rocks

I have discovered an NuGet package that just saved me a lot of coding.  linctotwitter.


With this package installed I just retrieve data from twitter using LINQ.

Here is an example of retrieving my latest tweets.

var twitterCtx = new TwitterContext();
            var queryResults =
                from search in twitterCtx.Search
                where search.Type == SearchType.Search &&
                      search.Query == "starknetwork"
                select search;
            Search srch = queryResults.Single();
            Console.WriteLine("\nQuery: {0}\n", srch.QueryResult);
            srch.Results.ForEach(entry =>
                    "ID: {0, -15}, Source: {1}\nContent: {2}\n",
                    entry.ID, entry.Source, entry.Text));