> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.3/api/csharp/yarn/yarn.library/yarn.library.getfunction.md).

# GetFunction(string)

Method in [Library](/2.3/api/csharp/yarn/yarn.library.md)

## Summary

Returns a `System.Delegate` with a given name.

```csharp
public Delegate GetFunction(string name)
```

## Parameters

| Name          | Description                           |
| ------------- | ------------------------------------- |
| `string` name | The name of the function to retrieve. |

## Returns

The `System.Delegate` .
