示例#1
0
            public void VisitOrFilter <T>(OrFilter <T> filter)
            {
                IList <Filter <T> > filters = filter.Filters;

                if (filters.Count == 0)
                {
                    ThrowNotSupportedException();
                }
                else
                {
                    for (int i = 0; i < filters.Count; i++)
                    {
                        if (needComma)
                        {
                            formatter.result.Append(", ");
                        }
                        filters[i].Accept(this);
                    }
                }
            }
示例#2
0
 /// <inheritdoc />
 public void VisitOrFilter <T>(OrFilter <T> filter)
 {
     FormatConjuction(filter.Filters, @" or ");
 }