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