We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Port this change from botbuilder-dotnet/master branch: microsoft/botbuilder-dotnet#3595
Make customized function in LG and expression easier by accepting just a lambda.
At the cost of expose FunctionTable instead of a generic IDictionary.
Now you can do
Expression.Functions.Add("contoso.sqrt", (args) => { object retValue = null; if (args[0] != null) { double dblValue; if (double.TryParse(args[0], out dblValue)) { retValue = Math.Sqrt(dblValue); } } return retValue; });
to add a new function
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Make customized function in LG and expression easier by accepting just a lambda.
At the cost of expose FunctionTable instead of a generic IDictionary.
Now you can do
to add a new function
Changed projects
The text was updated successfully, but these errors were encountered: