예제 #1
0
 public void Minimize()
 {
     if (IsGroup)
     {
         CWordsAll.Clear();
         CWordsAny.Clear();
         CWordsNot.Clear();
         MeasuresAll.Clear();
         MeasuresAny.Clear();
         Categories.Clear();
         Children.ForAll(x => x.Minimize());
     }
 }
예제 #2
0
        public override bool Equals(object obj)
        {
            var other = obj as SearchOptions;

            if (other == null)
            {
                return(false);
            }

            return(GroupOperator == other.GroupOperator &&
                   SearchScope == other.SearchScope &&
                   MinAny == other.MinAny &&
                   WithConf == other.WithConf &&
                   PartialLoaded == other.PartialLoaded &&
                   CWordsAll.ScrambledEquals(other.CWordsAll) &&
                   CWordsAny.ScrambledEquals(other.CWordsAny) &&
                   CWordsNot.ScrambledEquals(other.CWordsNot) &&
                   MeasuresAll.ScrambledEquals(other.MeasuresAll) &&
                   MeasuresAny.ScrambledEquals(other.MeasuresAny) &&
                   Categories.ScrambledEquals(other.Categories) &&
                   Children.ScrambledEquals(other.Children)
                   );
        }