Exemple #1
0
        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)));
        }
Exemple #2
0
 object?TryFilter <T>(T source, FilterConverter <T> converter) => converter.Filter(source);