# ConversionServer class

Namespace: [Grasshopper2.Types.Conversion](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.conversion.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class ConversionServer
```

This static class collects and maintains all conversion logic.

## Properties

- [Actions](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.conversion.conversionserver/actions.md): (static) Enumerate over all registered actions. Note that some actions are created on an as-needed basis so this collection may change over time even without new plugins getting loaded.

## Methods

- [Convert](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.conversion.conversionserver/convert.md): (4 overloads, static) Try and convert between weakly typed values.
- [ConvertIfBetter<TTarget>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.conversion.conversionserver/convertifbetter.md): (static) Perform a conversion provided the merit improves.
- [ConvertPear](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.conversion.conversionserver/convertpear.md): (4 overloads, static) Try and convert between weakly typed values.
- [ConvertPearStrong<TSource, TTarget>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.conversion.conversionserver/convertpearstrong.md): (2 overloads, static) Try and convert between strongly typed values.
- [ConvertTQ<TSource, TTarget>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.conversion.conversionserver/converttq.md): (2 overloads, static) Try and convert between strongly typed values.
- [DowngradeType](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.conversion.conversionserver/downgradetype.md): (static) Downgrade a type used in Grasshopper 2 to an equivalent type in Grasshopper 1.
- [FindConversion](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.conversion.conversionserver/findconversion.md): (2 overloads, static) Get conversion action between two types.
- [ShowDiagram](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.conversion.conversionserver/showdiagram.md): (static)
- [TryAddConversion](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.conversion.conversionserver/tryaddconversion.md): (static) Attempt to add a conversion delegate. The method must point to a [ConversionDelegate<TSource, TTarget>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.conversion.conversiondelegate-2.md) compliant method and have at least a [MeritAttribute](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.conversion.meritattribute.md) attached to it.
- [UpgradeType](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.conversion.conversionserver/upgradetype.md): (static) Upgrade a type used in Grasshopper 1 to an equivalent type in Grasshopper 2.
