Community
Yarn Spinner® and Secret Lab® are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.
Method in
Registers a new function that returns a value, which can be called from a Yarn program.
string name
string
The name of the function.
System.Func<TResult> implementation
System.Func<TResult>
The method to be invoked when the function is called.
TResult
The return type of the function.
public void RegisterFunction<TResult>(string name, Func<TResult> implementation)