object TryFilter <T>(IReadOnlyCollection <T> source, string filter) { var converter = FilterConverter <T> .TryCreate(filter); if (converter == null) { return(source); } return(source .Select(s => TryFilter(s, converter))); }
object?TryFilter <T>(T source, FilterConverter <T> converter) => converter.Filter(source);