microsoft / RulesEngine

A Json based Rules Engine with extensive Dynamic expression support
https://microsoft.github.io/RulesEngine/
MIT License
3.6k stars 543 forks source link

Using linq inside lambda #451

Closed DomsRoberts closed 1 year ago

DomsRoberts commented 1 year ago

I want to be able to check if there is a matching item in an array. Using simple Linq statements, such as Any(), work. Embedding a lambda in the Linq, such as Any(v => v != null) fails to compile. Any idea how that could be done?

abbasc52 commented 1 year ago

@DomsRoberts Can you share a complete example of the rule where you are getting error along with input?

abbasc52 commented 1 year ago

Closing this issue due to inactivity @DomsRoberts if you still face the issue, feel free to reopen the issue