---
title: "Type alias"
description: "Understand how to create an alias for a Slice type."
url: https://docs.icerpc.dev/slice/language-guide/type-alias
docs_index: https://docs.icerpc.dev/llms.txt
---

> For an index of every page, see [llms.txt](https://docs.icerpc.dev/llms.txt).

# Type alias

Understand how to create an alias for a Slice type.

## New name for an existing type

You can use a `typealias` to give a new name to an existing type or typealias. For example:

```slice
// Greeting is now another name for string
typealias Greeting = string
```

It is common to create a typealias to shorten a type with one or more attributes. For example:

```slice
typealias StringSet = [cs::type("HashSet<string>")] Sequence<string>
```

## C# mapping

A typealias is not mapped to anything in C#. The C# code generator generates code as if the typealias was replaced by its underlying type (including [attributes](https://docs.icerpc.dev/slice/language-guide/attributes.md), if any).
