> 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.4/api/csharp/yarn/yarn.program.md).

# Program

Class in [Yarn](/2.4/api/csharp/yarn.md)

Inherits from `System.Object`

## Summary

A compiled Yarn program.

```csharp
public class Program
```

## Methods

| Name                                                                                       | Description                                                               |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------- |
| [Combine(Program\[\])](/2.4/api/csharp/yarn/yarn.program/yarn.program.combine.md)          | Creates a new Program by merging multiple Programs together.              |
| [LineIDsForNode(string)](/2.4/api/csharp/yarn/yarn.program/yarn.program.lineidsfornode.md) | Identifies and returns a list of all line and option IDs inside the node. |
| [ToString()](/2.4/api/csharp/yarn/yarn.program/yarn.program.tostring.md)                   |                                                                           |

## Properties

| Name                                                                             | Description                                                                                                                                                |
| -------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [InitialValues](/2.4/api/csharp/yarn/yarn.program/yarn.program.initialvalues.md) | The collection of initial values for variables; if a PUSH\_VARIABLE instruction is run, and the value is not found in the storage, this value will be used |
| [Name](/2.4/api/csharp/yarn/yarn.program/yarn.program.name.md)                   | The name of the program.                                                                                                                                   |
| [Nodes](/2.4/api/csharp/yarn/yarn.program/yarn.program.nodes.md)                 | The collection of nodes in this program.                                                                                                                   |
