runxc1 / MicroRuleEngine

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

Can you request an element by name in a dictionary? #18

Open dthk-cogmatix opened 4 years ago

dthk-cogmatix commented 4 years ago

Would it be possible to access a dictionary by name?

example) myDict["KeyName"]

runxc1 commented 4 years ago

So currently no there really isn't an a way to write a rule for a dictionary as such but someone went and added a way to specify an the index of something in a collection so I am pretty sure if you could add it in a similar way if you looked at the code.

jamescurran commented 4 years ago

I've got this….

jamescurran commented 4 years ago

Not that I intended it to (I was trying to create two separate Pull requests), but this was included in Pull Request #21