# Program

Class in [Yarn](https://docs.yarnspinner.dev/2.1/api/csharp/yarn)

Inherits from `System.Object`

## Summary

A compiled Yarn program.

```csharp
public class Program
```

## Methods

| Name                                                                                                       | Description                                                  |
| ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| [Combine(Program\[\])](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.program/yarn.program.combine) | Creates a new Program by merging multiple Programs together. |
| [ToString()](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.program/yarn.program.tostring)          |                                                              |

## Properties

| Name                                                                                                      | Description                                                                                                                                                |
| --------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [InitialValues](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.program/yarn.program.initialvalues) | 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](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.program/yarn.program.name)                   | The name of the program.                                                                                                                                   |
| [Nodes](https://docs.yarnspinner.dev/2.1/api/csharp/yarn/yarn.program/yarn.program.nodes)                 | The collection of nodes in this program.                                                                                                                   |
