i am creating a method that generates predicate to filter out items from list.
MemberExpression member = Expression.Property(param, filter.ColumnName);
ConstantExpression constant = Expression.Constant(filter.Text);
for contains
private static MethodInfo containsMethod = typeof(string).GetMethod("Contains");
Expression.Call(member , containsMethod, constant);
for equals
Expression.Equal(member , constant);
now i need for greater than, less than but this comparison will be of two string so have to use CompareTo like string1.CompareTo(string2) > 0
;
i need this type of function so that i can use as above other functions.please help