public static IMixEvaluator NestedMixEntryModelToMixEvaluator(MixType mixType, List <IMixEvaluator> mixes) { NestedEvalType nestedEvalType = NestedEvalType.Unknown; switch (mixType) { case MixType.And: nestedEvalType = NestedEvalType.All; break; case MixType.Or: nestedEvalType = NestedEvalType.Any; break; case MixType.Not: nestedEvalType = NestedEvalType.None; break; default: DebugHelper.Alert(new CallerInfo(), "Unexpected NESTED_TYPE MixType {0}", mixType); break; } return(new NestedMixEvaluator(mixes, nestedEvalType, mixType)); }
public NestedMixEvaluator(List<IMixEvaluator> mixes, NestedEvalType evalType, MixType type) { Mixes = mixes; EvalType = evalType; MixType = type; }
public NestedMixEvaluator(List <IMixEvaluator> mixes, NestedEvalType evalType, MixType type) { Mixes = mixes; EvalType = evalType; MixType = type; }