> 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.5/api/csharp/yarn.compiler.upgrader/yarn.compiler.upgrader.languageupgrader.md).

# LanguageUpgrader

Class in [Yarn.Compiler.Upgrader](/2.5/api/csharp/yarn.compiler.upgrader.md)

Inherits from `System.Object`

## Summary

Contains methods for upgrading the syntax of Yarn scripts.

```csharp
public static class LanguageUpgrader
```

## Methods

| Name                                                                                                                                                     | Description                                                                                                                                         |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Upgrade(UpgradeJob)](/2.5/api/csharp/yarn.compiler.upgrader/yarn.compiler.upgrader.languageupgrader/yarn.compiler.upgrader.languageupgrader.upgrade.md) | Upgrades a Yarn script from one version of the language to another, producing both the fully upgraded text as well as a collection of replacements. |
