Part 5 in a series on new language features in C# 12.

C# logo

Alias any type

Now you can create aliases for any type - it doesn’t need to have a name. Tuples are a great example, but also arrays.

using P = Tuple<string, string, int>;
using C = char[];

Further reading

Example source