Open chstorb opened 7 years ago
The Filter.Collect method should be modified as follows:
` private void Collect(List filters) { if (Filters != null && Filters.Any()) { foreach (Filter filter in Filters) { filters.Add(filter);
if (filter.Filters?.Count > 0) // add this line { // add this line filter.Collect(filters); } // add this line } } else { filters.Add(this); } }`
The Filter.Collect method should be modified as follows:
` private void Collect(List filters)
{
if (Filters != null && Filters.Any())
{
foreach (Filter filter in Filters)
{
filters.Add(filter);