I am looking for a trick in newer dotnets where I can use inline functions that return a string value. Here's what I have:
var split = new[] { " " };
var words = SearchTextBox.Text.Trim().Split(
split,
StringSplitOptions.RemoveEmptyEntries);
var textQuery = /*inlinefunction that operates on words array and returns a string.*/
I know I've seen this before maybe with chain methods or anonymous functions... I just can't recall if I imagined the whole thing or not :-)