Lambda expression for the Contains statement, which I can generate using this code.
Expression
Company => Company.Name.Contains("test1")
Source
var method = typeof(string).GetMethod("Contains", new[] { typeof(string) }); var startsWithDishExpr = Expression.Call(argLeft, method, argRight);
Works great for the Contains statement. How to change the code to work for the NotContains operator.
Source
var method = typeof(string).GetMethod("NotContains", new[] { typeof(string) }); var startsWithDishExpr = Expression.Call(argLeft, method, argRight);
Operator
NotContains does not work. Anyone have a suggestion?
sivaL
source share