示例#1
0
            public static EventGroupFilter Apply(Filter filter)
            {
                EventGroupFilter result;

                if (filter != null)
                {
                    var finder = new DoConvert();
                    filter.AcceptVisitor(finder);

                    result = finder.lastResult_;
                }
                else
                {
                    result = null;
                }

                return(result);
            }
示例#2
0
 public static EventGroupFilter Convert(Filter filter)
 => DoConvert.Apply(filter) ?? MatchAll.Instance;