public static string ConvertToString(ComplexFilterOperator.Types operation) { switch (operation) { case Types.And: return "AND"; case Types.Or: return "OR"; default: break; } return null; }
public ComplexFilter(IFilter firstFilter, IFilter secondFilter, ComplexFilterOperator.Types operation) { FirstFilter = firstFilter; SecondFilter = secondFilter; Operation = operation; }