Ejemplo n.º 1
0
        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);
                }
            }
        }
Ejemplo n.º 2
0
 public static IEnumerable <FilterDefinition> EnumerateFilterDefinitions(this ReportDefinition reportDefinition)
 {
     return(ReportDefinitionExtensions.EnumerateFilterDefinitions(reportDefinition?.Filters));
 }