This may be more of a general Linq question that specifically to do with the LinqToTwitter, but hopefully someone can help.
I'm using the TwitterContext.Search to search for tweets. This is my code and it works well
var searchResponse =
(from search in twitterCtx.Search
where search.Type == SearchType.Search &&
search.Count == ResultsPerPage &&
search.Query == Query &&
search.ResultType == rt
I have some additional parameter such as MaxID, SinceID, Until and GeoCode which may or may not have values.
How do I add these parameter only if they are not null?
For example if MaxID is not null I'd add the following to my query. However if MaxID is null it means that no tweets are returned.
&& search.MaxID == MaxID