Пример #1
0
 /// <summary>
 /// 添加一个过滤器链表到链表
 /// </summary>
 /// <param name="logic">与上一个过滤器的逻辑关系</param>
 /// <param name="filter">要添加的过滤器链表</param>
 /// <returns></returns>
 public FilterLinked AddFilterLinked(LogicOperation logic, FilterLinked filterLinked)
 {
     _filter.Next              = new FilterWrapper();
     _filter.Next.Operation    = logic;
     _filter.Next.FilterLinked = filterLinked;
     _filter.Next.Prev         = _filter;
     _filter = _filter.Next;
     return(this);
 }
Пример #2
0
 public FilterLinked(FilterLinked filterLinked)
 {
     _filter = new FilterWrapper();
     _filter.FilterLinked = filterLinked;
 }