runxc1 / MicroRuleEngine

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

Some refactoring and minor clean up #3

Closed stemarie closed 5 years ago

stemarie commented 11 years ago

Renamed nestedOperators to _* in order to follow private variable standards, also made it readonly as its value never changes

Made possible methods static

Used base types where possible

Using LINQ expression instead of a foreach loop

Simplified switch case in BinaryExpression

Simplified if-elseif-else since it was using returns

Simplified StringToExpression, it now is a single line that doesn't need a temporary variable

And most important - All unit tests pass