# GH_UpgradeUtil class

Namespace: [Grasshopper.Kernel](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_UpgradeUtil
```

Exposes several utility functions for migrating parameters and wires between components useful while upgrading components.

## Methods

- [MigrateInputParameters](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-upgradeutil/migrateinputparameters.md): (2 overloads, static) Migrate a bunch of input parameters.
- [MigrateOutputParameters](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-upgradeutil/migrateoutputparameters.md): (2 overloads, static) Migrate a bunch of output parameters.
- [MigrateRecipients](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-upgradeutil/migraterecipients.md): (2 overloads, static) Utility method for bulk assigning a bunch of sources.
- [MigrateSources](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-upgradeutil/migratesources.md): (2 overloads, static) Utility method for bulk assigning a bunch of sources.
- [ReplaceInputParameters](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-upgradeutil/replaceinputparameters.md): (static) Move all input parameters from one component to another. Only use this function if the target component can handle the input layout of the source component.
- [ReplaceOutputParameters](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-upgradeutil/replaceoutputparameters.md): (static) Move all output parameters from one component to another. Only use this function if the target component can handle the output layout of the source component.
- [SwapComponents](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.gh-upgradeutil/swapcomponents.md): (4 overloads, static) Replace an existing component with a different one. All parameters (input and output) will be migrated.
