> 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.dialogue/yarn.dialogue.addprogram.md).

# AddProgram(Program)

Method in [Dialogue](/2.3/api/csharp/yarn/yarn.dialogue.md)

## Summary

Loads the nodes from the specified [Program](/2.3/api/csharp/yarn/yarn.program.md) , and adds them to the nodes already loaded.

```csharp
public void AddProgram(Program program)
```

## Remarks

If `Yarn.Dialogue.Program` is `null` , this method has the effect as calling [SetProgram(Program)](/2.3/api/csharp/yarn/yarn.dialogue/yarn.dialogue.setprogram.md) .

## Parameters

| Name                                                         | Description                     |
| ------------------------------------------------------------ | ------------------------------- |
| [Yarn.Program](/2.3/api/csharp/yarn/yarn.program.md) program | The additional program to load. |
