runxc1 / MicroRuleEngine

A .Net Rule Engine for dynamically evaluating business rules compiled on the fly.
MIT License
186 stars 74 forks source link

How to do Contains operation #4

Closed ganeshran closed 10 years ago

ganeshran commented 10 years ago

Hi,

Thanks for this library. how can I do String.Contains() check using the the engine?

Regards, Ganesh

runxc1 commented 10 years ago

Look at the Test ChildPropertyBooleanMethods

Found here https://github.com/runxc1/MicroRuleEngine/blob/master/MicroRuleEngine.Tests/ExampleUsage.cs

Contains would work the same as EndsWith as demonstrated in the test

ganeshran commented 10 years ago

Oops missed this.

Thank you!