示例#1
0
 public static string ConvertToString(FilterComparer.Types comparer)
 {
     switch (comparer)
     {
         case Types.Equals:
             return "=";
         case Types.Greater:
             return ">";
         case Types.Lesser:
             return "<";
         case Types.GreaterAndEquals:
             return ">=";
         case Types.LesserAndEquals:
             return "<=";
         case Types.NotEquals:
             return "!=";
     }
     return null;
 }
示例#2
0
 public ComparisonFilter(string leftSide, string rightSide, FilterComparer.Types comparer)
 {
     LeftSide = leftSide;
     RightSide = rightSide;
     Comparer = comparer;
 }