# AddFunction(string,System.Func\<TResult, T1, T2, T3, T4, T5>)

Method in [DialogueRunner](https://docs.yarnspinner.dev/2.2/api/csharp/yarn.unity/yarn.unity.dialoguerunner)

## Summary

```csharp
public void AddFunction<TResult, T1, T2, T3, T4, T5>(string name, System.Func<TResult, T1, T2, T3, T4, T5> implementation)
```

## Parameters

| Name                                                      | Description |
| --------------------------------------------------------- | ----------- |
| `string` name                                             |             |
| `System.Func<TResult, T1, T2, T3, T4, T5>` implementation |             |

## Type Parameters

| Name | Description                                      |
| ---- | ------------------------------------------------ |
| T5   | The type of the fifth parameter to the function. |
