I want to select a token from a string, if it exists in a string, I have the following: I'm not sure why it does not compile:
IList<string> tokens = _animals.Split(';');
Func<string, bool> f1 = str => str.Contains("Dog");
Func<string, Func<string, bool>, string> f2 = str => Equals(f1, true);
var selected = tokens.Select(f2);
Greetings
Ollie
source
share