# Generics

Type parameters that let classes and methods work safely with different types.

## What is **Generics** in C#?

**Generics** — Type parameters that let classes and methods work safely with different types.

```csharp
class ListReader
{
    T First<T>(List<T> items)
    {
        return items[0];
    }
}
```

Level: Freelancer · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/freelancer)

Updated: September 27, 2026

## In other subjects

- [Generics in Java](https://www.ask-codey.com/glossary/generics)

Source: https://www.ask-codey.com/glossary/generics-c-sharp
