Skip to content

Initial implementation of user defined functions #12

New issue

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

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

Already on GitHub? # to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

miroiu
Copy link
Owner

@miroiu miroiu commented Jan 23, 2024

Allow user defined functions #11

Sample:

_context.RegisterFunction("if", (args) => args[0] > 0 ? args[1] : args[2]);
Assert.IsTrue("if(5 > 2, {true}, {false})".EvalBoolean(_context));

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant