You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is what to include in your request to make sure we implement a solution as quickly as possible.
1. Description
I am using dynamic lambda expression, and trying to filter records based on a derived type.
varexpr1=DynamicExpressionParser.ParseLambda<Settings,bool>(newParsingConfig(),true,"c => (c.Applicability As WinApplicability).SKUs.Contains(@0)",result);
Here Appilicability is a property within Settings type, and WinApplicability is a derived type of Applicability. SKUs is a property within WinApplicability.
The above line of code fails with the below error. Any idea how to deal with this issue?
Exception
System.Linq.Dynamic.Core.Exceptions.ParseException: ')' or operator expected
If I try to use static lambda expression, I dont see any error, but result being variable, the code fails with
Expression<Func<Settings,bool>>expr2= c =>(c.ApplicabilityasWinApplicability).SKUs.Contains(result);
since the variable "result" is not pre-computed
"Object reference not set to an instance of an object."
StackTrace = " at System.Linq.Enumerable.WhereListIterator`1.MoveNext()\r\n at System.Linq.SystemCore_EnumerableDebugView`1.get_Items()"
The text was updated successfully, but these errors were encountered:
Here is what to include in your request to make sure we implement a solution as quickly as possible.
1. Description
I am using dynamic lambda expression, and trying to filter records based on a derived type.
Here Appilicability is a property within Settings type, and WinApplicability is a derived type of Applicability. SKUs is a property within WinApplicability.
The above line of code fails with the below error. Any idea how to deal with this issue?
Exception
If I try to use static lambda expression, I dont see any error, but result being variable, the code fails with
since the variable "result" is not pre-computed
The text was updated successfully, but these errors were encountered: