LINQ to Twitter v4.2.0 Released

Today, Joe Mayo released the latest version of LINQ to Twitter. LINQ to Twitter is an open source third-party LINQ Provider (Twitter Library) for the Twitter micro-blogging service. It uses standard LINQ syntax for queries and includes method calls for changes via the Twitter API.
 
In addition to fixing bugs, the highlighted features of this release include support for DM Events, Extended Tweets and .NET Core. 
 
 
Here’s a demo of using extended mode tweets in a Search query:  
  1. static async Task DoSearchAsync(TwitterContext twitterCtx)  
  2.        {  
  3.            string searchTerm = "\"LINQ to Twitter\" OR Linq2Twitter OR LinqToTwitter OR JoeMayo";  
  4.   
  5.            Search searchResponse =  
  6.                await  
  7.                (from search in twitterCtx.Search  
  8.                 where search.Type == SearchType.Search &&  
  9.                       search.Query == searchTerm &&  
  10.                       search.IncludeEntities == true &&  
  11.                       search.TweetMode == TweetMode.Extended  
  12.                 select search)  
  13.                .SingleOrDefaultAsync();  
  14.   
  15.            if (searchResponse?.Statuses != null)  
  16.                searchResponse.Statuses.ForEach(tweet =>  
  17.                    Console.WriteLine(  
  18.                        "\n  User: {0} ({1})\n  Tweet: {2}",   
  19.                        tweet.User.ScreenNameResponse,  
  20.                        tweet.User.UserIDResponse,  
  21.                        tweet.Text ?? tweet.FullText));  
  22.            else  
  23.                Console.WriteLine("No entries found.");  
  24.        }