RegisterFunction(string,Func<TResult>)
Last updated
Was this helpful?
Last updated
Was this helpful?
Method in
Registers a new function that returns a value, which can be called from a Yarn program.
string
name
The name of the function.
System.Func<TResult>
implementation
The method to be invoked when the function is called.
TResult
The return type of the function.