# AtsTypeMapping Methods

- Package: [Aspire.TypeSystem](/reference/api/csharp/aspire.typesystem.md)
- Type: [AtsTypeMapping](/reference/api/csharp/aspire.typesystem/atstypemapping.md)
- Kind: `Methods`
- Members: `2`

Static utility for deriving ATS type IDs from CLR types.

## DeriveTypeId(string, string)

- Name: `DeriveTypeId(string, string)`
- Modifiers: `static`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.TypeSystem/AtsTypeMapping.cs#L22)

Derives an ATS type ID from an assembly name and full type name.

```csharp
public static class AtsTypeMapping
{
    public static string DeriveTypeId(
        string assemblyName,
        string fullTypeName)
    {
        // ...
    }
}
```

## Parameters

- `assemblyName` (`string`)
  The assembly name.
- `fullTypeName` (`string`)
  The full type name including namespace.

## Returns

`string` -- The derived type ID in format {AssemblyName}/{FullTypeName}.

## DeriveTypeId(Type)

- Name: `DeriveTypeId(Type)`
- Modifiers: `static`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.TypeSystem/AtsTypeMapping.cs#L32-L33)

Derives an ATS type ID from a CLR type.

```csharp
public static class AtsTypeMapping
{
    public static string DeriveTypeId(
        Type type)
    {
        // ...
    }
}
```

## Parameters

- `type` (`Type`)
  The CLR type.

## Returns

`string` -- The derived type ID in format {AssemblyName}/{FullTypeName}.
