public static IEnumerable <FilterDefinition> EnumerateFilterDefinitions(IDictionary <string, FilterDefinition> filterDefinitions) { if (null == filterDefinitions) { yield break; } foreach (var entry in filterDefinitions) { yield return(entry.Value); foreach (var childDefinition in ReportDefinitionExtensions.EnumerateFilterDefinitions(entry.Value.Children)) { yield return(childDefinition); } } }
public static IEnumerable <FilterDefinition> EnumerateFilterDefinitions(this ReportDefinition reportDefinition) { return(ReportDefinitionExtensions.EnumerateFilterDefinitions(reportDefinition?.Filters)); }