Get Filtered Strings with Predicate
public IList<string> GetFilteredStrings() | |
{ | |
Func<string, bool> predicate = a => a.Length == 1; | |
return new List<string> { "321", "21", "1" }.Where(predicate).ToList(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment