Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Conditional Rule with C# delegator or Itterator #1

Open
HasinZaman opened this issue Jan 24, 2022 · 0 comments
Open

Update Conditional Rule with C# delegator or Itterator #1

HasinZaman opened this issue Jan 24, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@HasinZaman
Copy link
Owner

Issue:
The current implementation of requires user to create class that inherits from IRule or ConditionalRule. Resulting in a lot code to be repeated; with very little differences between the inherited classes and increased risk of implementing bugs and fatal errors.

Recommendation:
This issue could be resolved by implementing a delegator or a special Iterator class.
Delegator - Delegator function would be responsible to make a comparison and determine whether another element needs to be checked
Special Iterator - Iterator would move pointer in a specific direction and make comparison.

Both approaches would run in a replace method.

@HasinZaman HasinZaman added the enhancement New feature or request label Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant