Esempio n. 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;
 }
Esempio n. 2
0
 public ComparisonFilter(string leftSide, string rightSide, FilterComparer.Types comparer)
 {
     LeftSide = leftSide;
     RightSide = rightSide;
     Comparer = comparer;
 }