Library.RegisterFunction<T1, T2, T3, T4, T5, TResult>(string,Func<T1, T2, T3, T4, T5, TResult>)

Method in Library

Summary

Registers a new function that returns a value, which can be called from a Yarn program.

public void RegisterFunction<T1, T2, T3, T4, T5, TResult>(string name, Func<T1, T2, T3, T4, T5, TResult> implementation)

Parameters

NameDescription
string nameThe name of the function.
System.Func<T1, T2, T3, T4, T5, TResult> implementationThe method to be invoked when the function is called.

Type Parameters

NameDescription
TResultThe return type of the function.
TResultThe return type of the function.
T1The type of the function’s first argument.
T2The type of the function’s second argument.
T3The type of the function’s third argument.
T4The type of the function’s fourth argument.
T5The type of the function’s fifth argument.