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.

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

Level: Freelancer · More C# terms at this level

Updated

In other subjects